global expect

This commit is contained in:
Shin'ya Ueoka 2018-05-05 12:49:02 +09:00
parent b11a098d7c
commit fc8a12faa6
33 changed files with 4 additions and 31 deletions

View file

@ -6,12 +6,14 @@ module.exports = function (config) {
basePath: '',
frameworks: ['mocha'],
files: [
'test/main.js',
'test/**/*.test.js',
'test/**/*.test.jsx',
'test/**/*.html'
],
preprocessors: {
'test/main.js': [ 'webpack' ],
'test/**/*.test.js': [ 'webpack' ],
'test/**/*.test.jsx': [ 'webpack' ],
'test/**/*.html': ['html2js']

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'background/actions';
import * as findActions from 'background/actions/find';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'background/actions';
import findReducer from 'background/reducers/find';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'background/actions';
import settingReducer from 'background/reducers/setting';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'console/actions';
import * as consoleActions from 'console/actions/console';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'console/actions';
import reducer from 'console/reducers';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import * as addonActions from 'content/actions/addon';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import * as followControllerActions from 'content/actions/follow-controller';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import * as inputActions from 'content/actions/input';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import * as settingActions from 'content/actions/setting';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import FollowComponent from 'content/components/common/follow';
describe('FollowComponent', () => {

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import Hint from 'content/components/common/hint';
describe('Hint class', () => {

View file

@ -1,5 +1,4 @@
import InputComponent from 'content/components/common/input';
import { expect } from "chai";
describe('InputComponent', () => {
it('register callbacks', () => {

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import HintKeyProducer from 'content/hint-key-producer';
describe('HintKeyProducer class', () => {

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import * as navigates from 'content/navigates';
const testRel = (done, rel, html) => {

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import addonReducer from 'content/reducers/addon';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import findReducer from 'content/reducers/find';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import followControllerReducer from 'content/reducers/follow-controller';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import inputReducer from 'content/reducers/input';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'content/actions';
import settingReducer from 'content/reducers/setting';

2
test/main.js Normal file
View file

@ -0,0 +1,2 @@
import chai from 'chai';
global.expect = chai.expect;

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import { h, render } from 'preact';
import BlacklistForm from 'settings/components/form/blacklist-form'

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import { h, render } from 'preact';
import KeymapsForm from 'settings/components/form/keymaps-form'

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import { h, render } from 'preact';
import PropertiesForm from 'settings/components/form/properties-form'

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import { h, render } from 'preact';
import SearchForm from 'settings/components/form/search-form'

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import { h, render } from 'preact';
import Input from 'settings/components/ui/input'

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import actions from 'settings/actions';
import settingReducer from 'settings/reducers/setting';

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import * as parsers from 'shared/commands/parsers';
describe("shared/commands/parsers", () => {

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import { validate } from 'shared/settings/validator';
describe("setting validator", () => {

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import * as values from 'shared/settings/values';
describe("settings values", () => {

View file

@ -1,4 +1,3 @@
import { expect } from "chai";
import { createStore } from 'shared/store';
describe("Store class", () => {

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import * as keys from 'shared/utils/keys';
describe("keys util", () => {

View file

@ -1,4 +1,3 @@
import { expect } from 'chai';
import * as re from 'shared/utils/re';
describe("re util", () => {