Merge pull request #544 from ueokande/refactor-background

Refactor background
This commit is contained in:
Shin'ya Ueoka 2019-02-24 22:45:47 +09:00 committed by GitHub
commit dfeb7e7549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 502 additions and 476 deletions

View file

@ -1,4 +1,4 @@
import GlobalMark from 'background/domains/global-mark';
import GlobalMark from 'background/domains/GlobalMark';
describe('background/domains/global-mark', () => {
describe('constructor and getter', () => {

View file

@ -1,4 +1,4 @@
import MemoryStorage from 'background/infrastructures/memory-storage';
import MemoryStorage from 'background/infrastructures/MemoryStorage';
describe("background/infrastructures/memory-storage", () => {
it('stores values', () => {

View file

@ -1,5 +1,5 @@
import MarkRepository from 'background/repositories/mark';
import GlobalMark from 'background/domains/global-mark';
import MarkRepository from 'background/repositories/MarkRepository';
import GlobalMark from 'background/domains/GlobalMark';
describe('background/repositories/mark', () => {
let repository;

View file

@ -1,4 +1,4 @@
import VersionRepository from 'background/repositories/version';
import VersionRepository from 'background/repositories/Version';
describe("background/repositories/version", () => {
let versionRepository;

View file

@ -44,14 +44,5 @@ describe("shared/commands/parsers", () => {
.to.equal('http://google.com');
});
});
describe('#homepageUrls', () => {
it('split urls', () => {
expect(parsers.homepageUrls('https://google.com/'))
.to.deep.equal(['https://google.com/']);
expect(parsers.homepageUrls('yahoo.com|https://i-beam.org/'))
.to.deep.equal(['http://yahoo.com', 'https://i-beam.org/']);
});
});
});