Skip to content

Commit 0092dd1

Browse files
committed
refactor: review changes
1 parent b23ef24 commit 0092dd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/store/spec/types/feature_creator.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ describe('createFeature()', () => {
244244
`).toSucceed();
245245
});
246246

247-
it('should allow use with untyped store.select', () => {
247+
it('should not allow use with untyped store.select', () => {
248248
expectSnippet(`
249249
const { selectCounterState, selectCount } = createFeature<{ counter: { count: number } }>({
250250
name: 'counter',
@@ -254,7 +254,9 @@ describe('createFeature()', () => {
254254
let store!: Store;
255255
const counterState$ = store.select(selectCounterState);
256256
const count$ = store.select(selectCount);
257-
`).toFail(/No overload matches this call/);
257+
`).toFail(
258+
/Type 'Record<string, unknown>' is not assignable to type '{ counter: { count: number; }; }/
259+
);
258260
});
259261

260262
it('should allow use with typed store.select', () => {

0 commit comments

Comments
 (0)