Skip to content

Commit

Permalink
code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
siltomato committed May 24, 2024
1 parent 3dd2e38 commit 890685b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3823,7 +3823,7 @@ describe('EditorComponent', () => {
env.wait();

env.component.tabState.tabs$.pipe(take(1)).subscribe(tabs => {
expect(tabs.filter(tab => tab.type === 'draft')[0]?.isSelected).toBe(true);
expect(tabs.find(tab => tab.type === 'draft')?.isSelected).toBe(true);
env.dispose();
});
}));
Expand All @@ -3836,7 +3836,7 @@ describe('EditorComponent', () => {
env.wait();

env.component.tabState.tabs$.pipe(take(1)).subscribe(tabs => {
expect(tabs.filter(tab => tab.type === 'draft')[0]?.isSelected).toBe(false);
expect(tabs.find(tab => tab.type === 'draft')?.isSelected).toBe(false);
env.dispose();
});
}));
Expand Down

0 comments on commit 890685b

Please sign in to comment.