From e02d14834f90a61bdbe7d4558bf81593a6dacf0b Mon Sep 17 00:00:00 2001 From: lukianet Date: Thu, 20 Jun 2024 11:12:52 +0200 Subject: [PATCH] fix tests --- web-components/test/deeplink.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web-components/test/deeplink.test.js b/web-components/test/deeplink.test.js index 58f40e4f..955cfe58 100644 --- a/web-components/test/deeplink.test.js +++ b/web-components/test/deeplink.test.js @@ -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', @@ -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, @@ -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, @@ -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, @@ -78,6 +78,6 @@ describe('Deep linking', () => { types: 'desktop', }); await delay(1); - expect(events.length).to.equal(7); + expect(events.length).to.equal(6); }); });