Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
3ch023 committed Jun 20, 2024
1 parent f712f43 commit e02d148
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web-components/test/deeplink.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ describe('Deep linking', () => {
});
document.location.hash = 'filter=all&single_app=acrobat&types=desktop';
await delay(1);
expect(events.length).to.equal(2);
expect(events[1]).to.deep.equal({
expect(events.length).to.equal(1);
expect(events[0]).to.deep.equal({
filter: 'all',
search: undefined,
single_app: 'acrobat',
Expand All @@ -39,7 +39,7 @@ describe('Deep linking', () => {
types: 'desktop%2Cmobile',
});
await delay(1);
expect(events[2]).to.deep.equal({
expect(events[1]).to.deep.equal({
filter: 'all',
search: undefined,
single_app: undefined,
Expand All @@ -50,7 +50,7 @@ describe('Deep linking', () => {
types: undefined,
});
await delay(1);
expect(events[4]).to.deep.equal({
expect(events[3]).to.deep.equal({
filter: 'all',
search: undefined,
single_app: undefined,
Expand All @@ -64,7 +64,7 @@ describe('Deep linking', () => {
types: undefined,
});
await delay(1);
expect(events[4]).to.deep.equal({
expect(events[3]).to.deep.equal({
filter: 'all',
types: undefined,
sort: undefined,
Expand All @@ -78,6 +78,6 @@ describe('Deep linking', () => {
types: 'desktop',
});
await delay(1);
expect(events.length).to.equal(7);
expect(events.length).to.equal(6);
});
});

0 comments on commit e02d148

Please sign in to comment.