add test task

jh-changes
Shin'ya Ueoka 7 years ago
parent b9fe3343fc
commit 7f64413cc9
  1. 2
      package.json
  2. 2
      src/background/index.js

@ -4,7 +4,7 @@
"scripts": { "scripts": {
"start": "webpack -w --debug", "start": "webpack -w --debug",
"lint": "eslint src", "lint": "eslint src",
"test": "true" "test": "karma start"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

@ -2,7 +2,7 @@ import * as actions from '../shared/actions';
import * as tabs from './tabs'; import * as tabs from './tabs';
import KeyQueue from './key-queue'; import KeyQueue from './key-queue';
const queue = new KeyQueue(KeyQueue.DEFAULT_KEYMAP); const queue = new KeyQueue();
const keyDownHandle = (request) => { const keyDownHandle = (request) => {
return queue.push({ return queue.push({