From 7f64413cc95a8b3e842e888563f78bee6dcb8937 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Tue, 15 Aug 2017 20:49:04 +0900 Subject: [PATCH] add test task --- package.json | 2 +- src/background/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6663579..e62dd5c 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "scripts": { "start": "webpack -w --debug", "lint": "eslint src", - "test": "true" + "test": "karma start" }, "repository": { "type": "git", diff --git a/src/background/index.js b/src/background/index.js index d27c557..604ea92 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -2,7 +2,7 @@ import * as actions from '../shared/actions'; import * as tabs from './tabs'; import KeyQueue from './key-queue'; -const queue = new KeyQueue(KeyQueue.DEFAULT_KEYMAP); +const queue = new KeyQueue(); const keyDownHandle = (request) => { return queue.push({