Scroll on global mark and handle gone tab

This commit is contained in:
Shin'ya Ueoka 2018-10-12 14:59:45 +09:00
parent 003742ec51
commit e248477ecb
9 changed files with 49 additions and 13 deletions

View file

@ -1,9 +1,10 @@
import GlobalMark from 'background/domains/global-mark';
describe("background/domains/global-mark", () => {
describe("constructor and getter", () => {
let mark = new GlobalMark(1, 10, 30);
describe('background/domains/global-mark', () => {
describe('constructor and getter', () => {
let mark = new GlobalMark(1, 'http://example.com', 10, 30);
expect(mark.tabId).to.equal(1);
expect(mark.url).to.equal('http://example.com');
expect(mark.x).to.equal(10);
expect(mark.y).to.equal(30);
});