diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-03-29 10:58:10 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-03-29 10:58:10 +0900 |
commit | 1368fa2fc0f22d1ec4763c77c2ae983cf5037e92 (patch) | |
tree | 6a393ca1aa479309107593938da0f04ebea4f4a1 /test/background/completion | |
parent | 43f0f17cf7992cbe02040981f0b61dcd6437851c (diff) |
Fix tests with TabPresenter
Diffstat (limited to 'test/background/completion')
-rw-r--r-- | test/background/completion/TabCompletionUseCase.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/background/completion/TabCompletionUseCase.test.ts b/test/background/completion/TabCompletionUseCase.test.ts index e2c7c19..254bfe6 100644 --- a/test/background/completion/TabCompletionUseCase.test.ts +++ b/test/background/completion/TabCompletionUseCase.test.ts @@ -96,9 +96,9 @@ describe('TabCompletionUseCase', () => { sinon.stub(tabPresenter, 'getLastSelectedId').returns(Promise.resolve(11)); expect(await sut.queryTabs("", false)).to.deep.equal([ - { index: 0, title: 'Google', url: 'https://google.com/', faviconUrl: 'https://google.com/favicon.ico', flag: TabFlag.CurrentTab }, - { index: 1, title: 'Yahoo', url: 'https://yahoo.com/', faviconUrl: 'https://yahoo.com/favicon.ico', flag: TabFlag.LastTab }, - { index: 2, title: 'Bing', url: 'https://bing.com/', faviconUrl: undefined, flag: TabFlag.None }, + { index: 1, title: 'Google', url: 'https://google.com/', faviconUrl: 'https://google.com/favicon.ico', flag: TabFlag.CurrentTab }, + { index: 2, title: 'Yahoo', url: 'https://yahoo.com/', faviconUrl: 'https://yahoo.com/favicon.ico', flag: TabFlag.LastTab }, + { index: 3, title: 'Bing', url: 'https://bing.com/', faviconUrl: undefined, flag: TabFlag.None }, ]); }) }); |