Types src/content

This commit is contained in:
Shin'ya Ueoka 2019-05-02 14:08:51 +09:00
parent 992b3ac65d
commit d01db82c0d
62 changed files with 1411 additions and 468 deletions

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import * as followControllerActions from 'content/actions/follow-controller';
describe('follow-controller actions', () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import * as inputActions from 'content/actions/input';
describe("input actions", () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import * as markActions from 'content/actions/mark';
describe('mark actions', () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import * as settingActions from 'content/actions/setting';
describe("setting actions", () => {

View file

@ -21,12 +21,14 @@ describe('InputComponent', () => {
++b;
}
});
component.onKeyDown({ key: 'a' });
component.onKeyDown({ key: 'b' });
component.onKeyPress({ key: 'a' });
component.onKeyUp({ key: 'a' });
component.onKeyPress({ key: 'b' });
component.onKeyUp({ key: 'b' });
let elem = document.body;
component.onKeyDown({ key: 'a', target: elem });
component.onKeyDown({ key: 'b', target: elem });
component.onKeyPress({ key: 'a', target: elem });
component.onKeyUp({ key: 'a', target: elem });
component.onKeyPress({ key: 'b', target: elem });
component.onKeyUp({ key: 'b', target: elem });
expect(a).is.equals(1);
expect(b).is.equals(1);

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import addonReducer from 'content/reducers/addon';
describe("addon reducer", () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import findReducer from 'content/reducers/find';
describe("find reducer", () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import followControllerReducer from 'content/reducers/follow-controller';
describe('follow-controller reducer', () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import inputReducer from 'content/reducers/input';
describe("input reducer", () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import reducer from 'content/reducers/mark';
describe("mark reducer", () => {

View file

@ -1,4 +1,4 @@
import actions from 'content/actions';
import * as actions from 'content/actions';
import settingReducer from 'content/reducers/setting';
describe("content setting reducer", () => {