From 59f7d6775ac859860b56bf5cdc129affa1ede198 Mon Sep 17 00:00:00 2001 From: Xon <635541+Xon@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:47:06 +0800 Subject: [PATCH] cleanup tests --- test/scripts/reducers/choices.test.ts | 2 +- test/scripts/reducers/items.test.ts | 2 +- test/scripts/store/store.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/scripts/reducers/choices.test.ts b/test/scripts/reducers/choices.test.ts index 55662a42..c009af4a 100644 --- a/test/scripts/reducers/choices.test.ts +++ b/test/scripts/reducers/choices.test.ts @@ -14,7 +14,7 @@ describe('reducers/choices', () => { label: 'test', id: 1, elementId: '1', - groupId: 1, + group: null, active: false, disabled: false, placeholder: true, diff --git a/test/scripts/reducers/items.test.ts b/test/scripts/reducers/items.test.ts index 74429f69..eda14fc6 100644 --- a/test/scripts/reducers/items.test.ts +++ b/test/scripts/reducers/items.test.ts @@ -13,7 +13,7 @@ describe('reducers/items', () => { value: 'Item one', label: 'Item one', id: 1234, - groupId: 1, + group: null, score: 0, rank: 0, customProperties: { diff --git a/test/scripts/store/store.test.ts b/test/scripts/store/store.test.ts index 3628cdde..45a556e6 100644 --- a/test/scripts/store/store.test.ts +++ b/test/scripts/store/store.test.ts @@ -14,7 +14,7 @@ function shimStore() { describe('reducers/store', () => { let instance: Store; - let subscribeStub: sinon.SinonStub<[listener: StoreListener], void>; + let subscribeStub: sinon.SinonStub<[listener: StoreListener], Store>; let dispatchStub: sinon.SinonStub<[action: AnyAction], void>; let getStateStub: sinon.SinonStub; let emptyState: State;