Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Nov 21, 2024
1 parent 324aab2 commit bcd0470
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,27 @@ describe('playerInspectorLogic', () => {
})
})

describe('setWindowIdFilter', () => {
it('happy case', async () => {
await expectLogic(logic).toMatchValues({
windowIdFilter: null,
})
describe('setTrackedWindow', () => {
it('starts with no tracked window', async () => {
await expectLogic(logic, () => {
logic.actions.setTrackedWindow('nightly')
logic.actions.setTrackedWindow(null as unknown as string)
})
.toDispatchActions(['setTrackedWindow'])
.toMatchValues({
windowIdFilter: 'nightly',
trackedWindow: null,
})
})
it('default all', async () => {

it('can set tracked window', async () => {
await expectLogic(logic).toMatchValues({
trackedWindow: null,
})
await expectLogic(logic, () => {
logic.actions.setTrackedWindow(null as unknown as string)
logic.actions.setTrackedWindow('nightly')
})
.toDispatchActions(['setTrackedWindow'])
.toMatchValues({
windowIdFilter: null,
trackedWindow: 'nightly',
})
})
})
Expand Down

0 comments on commit bcd0470

Please sign in to comment.