From 49f1540a6471e7d612288c15198c10a556ef1b91 Mon Sep 17 00:00:00 2001 From: Ronan Connolly Date: Tue, 30 Apr 2024 01:23:31 +0200 Subject: [PATCH] Fix test --- src/app/jokes/jokes.component.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/jokes/jokes.component.spec.ts b/src/app/jokes/jokes.component.spec.ts index bd8060b..163de7c 100644 --- a/src/app/jokes/jokes.component.spec.ts +++ b/src/app/jokes/jokes.component.spec.ts @@ -13,7 +13,9 @@ describe('JokesComponent', () => { beforeEach(async () => { const jokesStoreService = { ...jasmine.createSpyObj('JokeStoreService', ['']), - jokes$: of(['Chuck Norris can divide by zero.']), + jokes$: of([ + { value: 'Chuck Norris can divide by zero.', isFavourite: false }, + ]), }; await TestBed.configureTestingModule({