diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-05 13:56:22 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-05 14:05:06 +0900 |
commit | c9c18966e6f59e8bc16dfd65394041491cba539e (patch) | |
tree | 0a31b9460352023d423bcea883d95a7ddd2d2594 /e2e | |
parent | fc8a12faa66d7a2f3c18f804c0856fb781b6e022 (diff) |
global expect
Diffstat (limited to 'e2e')
-rw-r--r-- | e2e/contents/scroll.test.js | 1 | ||||
-rw-r--r-- | e2e/contents/tab.test.js | 1 | ||||
-rw-r--r-- | e2e/contents/zoom.test.js | 1 | ||||
-rw-r--r-- | e2e/karma.conf.js | 2 | ||||
-rw-r--r-- | e2e/main.js | 2 |
5 files changed, 4 insertions, 3 deletions
diff --git a/e2e/contents/scroll.test.js b/e2e/contents/scroll.test.js index 070529a..0a896b3 100644 --- a/e2e/contents/scroll.test.js +++ b/e2e/contents/scroll.test.js @@ -1,4 +1,3 @@ -import { expect } from "chai"; import * as windows from "../ambassador/src/client/windows"; import * as tabs from "../ambassador/src/client/tabs"; import * as keys from "../ambassador/src/client/keys"; diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js index 4374907..880deb8 100644 --- a/e2e/contents/tab.test.js +++ b/e2e/contents/tab.test.js @@ -1,4 +1,3 @@ -import { expect } from "chai"; import * as windows from "../ambassador/src/client/windows"; import * as tabs from "../ambassador/src/client/tabs"; import * as keys from "../ambassador/src/client/keys"; diff --git a/e2e/contents/zoom.test.js b/e2e/contents/zoom.test.js index 603e0b6..10b7cca 100644 --- a/e2e/contents/zoom.test.js +++ b/e2e/contents/zoom.test.js @@ -1,4 +1,3 @@ -import { expect } from "chai"; import * as windows from "../ambassador/src/client/windows"; import * as tabs from "../ambassador/src/client/tabs"; import * as keys from "../ambassador/src/client/keys"; diff --git a/e2e/karma.conf.js b/e2e/karma.conf.js index 5ef4646..fcda415 100644 --- a/e2e/karma.conf.js +++ b/e2e/karma.conf.js @@ -4,11 +4,13 @@ module.exports = function (config) { basePath: '', frameworks: ['mocha'], files: [ + 'main.js', 'karma-delay.js', '**/*.test.js' ], preprocessors: { + '**/main.js': ['webpack'], '**/*.test.js': ['webpack'] }, diff --git a/e2e/main.js b/e2e/main.js new file mode 100644 index 0000000..d923aaa --- /dev/null +++ b/e2e/main.js @@ -0,0 +1,2 @@ +import chai from 'chai'; +global.expect = chai.expect; |