global expect

jh-changes
Shin'ya Ueoka 7 years ago
parent fc8a12faa6
commit c9c18966e6
  1. 1
      e2e/contents/scroll.test.js
  2. 1
      e2e/contents/tab.test.js
  3. 1
      e2e/contents/zoom.test.js
  4. 2
      e2e/karma.conf.js
  5. 2
      e2e/main.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";

@ -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";

@ -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";

@ -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']
},

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