Skip to content

Commit 3402aa7

Browse files
author
guoxun
committed
unit test, scroll left&right
1 parent 869ad15 commit 3402aa7

File tree

6 files changed

+1453
-12
lines changed

6 files changed

+1453
-12
lines changed

karma.conf.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var webpackConfig = require('./webpack.config.js')
2+
process.env.CHROME_BIN = require('puppeteer').executablePath()
3+
4+
module.exports = function(config) {
5+
config.set({
6+
frameworks: ['mocha'],
7+
8+
files: ['test/**/*.spec.js'],
9+
10+
preprocessors: {
11+
'**/*.spec.js': ['webpack', 'sourcemap']
12+
},
13+
14+
webpack: webpackConfig,
15+
16+
reporters: ['spec'],
17+
18+
browsers: ['ChromeHeadless']
19+
})
20+
}

0 commit comments

Comments
 (0)