Skip to content

Commit

Permalink
fix: linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Feb 10, 2025
1 parent 12d6d6b commit 419693c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/channel_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export type ChannelManagerPagination<SCG extends ExtendableGenerics = DefaultGen

export type ChannelManagerState<SCG extends ExtendableGenerics = DefaultGenerics> = {
channels: Channel<SCG>[];
pagination: ChannelManagerPagination<SCG>;
initialized: boolean;
pagination: ChannelManagerPagination<SCG>;
};

export type ChannelSetterParameterType<SCG extends ExtendableGenerics = DefaultGenerics> = ValueOrPatch<
Expand Down
5 changes: 4 additions & 1 deletion test/unit/channel_manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ describe('ChannelManager', () => {

it('should set state.initialized to true after the first queryChannels is done', async () => {
const stateChangeSpy = sinon.spy();
channelManager.state.subscribeWithSelector((nextValue) => ({ initialized: nextValue.initialized }), stateChangeSpy);
channelManager.state.subscribeWithSelector(
(nextValue) => ({ initialized: nextValue.initialized }),
stateChangeSpy,
);
stateChangeSpy.resetHistory();

const { initialized } = channelManager.state.getLatestValue();
Expand Down

0 comments on commit 419693c

Please sign in to comment.