diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-12 14:59:45 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-10-12 14:59:45 +0900 |
commit | e248477ecb46596af734589615118ba573971dc0 (patch) | |
tree | 8167efec0a4f539d4aecea4a0555c38f6a0934a3 /test/background/repositories/mark.test.js | |
parent | 003742ec51aa7aea9214442bc0b611e2eb5eaf6e (diff) |
Scroll on global mark and handle gone tab
Diffstat (limited to 'test/background/repositories/mark.test.js')
-rw-r--r-- | test/background/repositories/mark.test.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/background/repositories/mark.test.js b/test/background/repositories/mark.test.js index 94048ea..4f71f62 100644 --- a/test/background/repositories/mark.test.js +++ b/test/background/repositories/mark.test.js @@ -1,7 +1,7 @@ import MarkRepository from 'background/repositories/mark'; import GlobalMark from 'background/domains/global-mark'; -describe("background/repositories/version", () => { +describe('background/repositories/mark', () => { let repository; beforeEach(() => { @@ -9,13 +9,16 @@ describe("background/repositories/version", () => { }); it('get and set', async() => { - let mark = new GlobalMark(1, 10, 30); + let mark = new GlobalMark(1, 'http://example.com', 10, 30); repository.setMark('A', mark); let got = await repository.getMark('A'); expect(got).to.be.a('object'); expect(got.tabId).to.equal(1); + expect(got.url).to.equal('http://example.com'); + expect(got.x).to.equal(10); + expect(got.y).to.equal(30); got = await repository.getMark('B'); expect(got).to.be.undefined; |