Skip to content

Commit 5d06162

Browse files
committed
Move to power-assert for tests and make failing test for DraggableCore callback
1 parent 6028341 commit 5d06162

File tree

4 files changed

+108
-70
lines changed

4 files changed

+108
-70
lines changed

.babelrc

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,13 @@
66
],
77
"plugins": [
88
"transform-flow-comments",
9-
]
9+
],
10+
"env": {
11+
"test": {
12+
"plugins": [
13+
// Makes power-assert work
14+
"espower"
15+
]
16+
}
17+
}
1018
}

karma.conf.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,18 @@ module.exports = function(config) {
2424
module: {
2525
loaders: [
2626
{
27-
test: /\.(?:js|es).?$/,
28-
loader: 'babel-loader',
27+
test: /\.(?:jsx?|es6)$/,
28+
loader: 'babel',
2929
query: {
3030
cacheDirectory: true,
3131
},
32-
exclude: /(node_modules)/
32+
exclude: /node_modules/
33+
},
34+
{
35+
test: /\.json$/,
36+
loader: 'json'
3337
}
34-
]
38+
],
3539
},
3640
plugins: [
3741
new webpack.DefinePlugin({

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@
3131
"babel-core": "^6.5.1",
3232
"babel-eslint": "^6.0.2",
3333
"babel-loader": "^6.2.2",
34+
"babel-plugin-espower": "^2.1.2",
3435
"babel-plugin-transform-flow-comments": "^6.7.0",
3536
"babel-preset-es2015": "^6.5.0",
3637
"babel-preset-react": "^6.5.0",
3738
"babel-preset-stage-1": "^6.5.0",
3839
"eslint": "^2.7.0",
3940
"eslint-plugin-react": "^4.3.0",
41+
"jasmine-core": "^2.4.1",
42+
"json-loader": "^0.5.4",
4043
"karma": "^0.13.14",
4144
"karma-chrome-launcher": "^0.2.1",
4245
"karma-cli": "0.1.2",
@@ -48,6 +51,7 @@
4851
"lodash": "^4.11.1",
4952
"open": "0.0.5",
5053
"phantomjs-prebuilt": ">=1.9",
54+
"power-assert": "^1.4.1",
5155
"pre-commit": "^1.1.2",
5256
"react": "^15.0.0",
5357
"react-dom": "^15.0.0",
@@ -64,4 +68,4 @@
6468
"dependencies": {
6569
"classnames": "^2.2.0"
6670
}
67-
}
71+
}

0 commit comments

Comments
 (0)