Compare commits
2 commits
develop
...
matthew/ka
Author | SHA1 | Date | |
---|---|---|---|
|
dbce60a025 | ||
|
95e173008c |
4 changed files with 52 additions and 1 deletions
28
karma.conf.js
Normal file
28
karma.conf.js
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
// karma.conf.js
|
||||||
|
var webpack = require('webpack');
|
||||||
|
|
||||||
|
module.exports = function (config) {
|
||||||
|
config.set({
|
||||||
|
browsers: ['Chrome'],
|
||||||
|
singleRun: true,
|
||||||
|
frameworks: ['mocha'],
|
||||||
|
files: [
|
||||||
|
'tests.webpack.js'
|
||||||
|
],
|
||||||
|
preprocessors: {
|
||||||
|
'tests.webpack.js': ['webpack']
|
||||||
|
},
|
||||||
|
reporters: ['dots'],
|
||||||
|
webpack: {
|
||||||
|
module: {
|
||||||
|
loaders: [
|
||||||
|
{test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader'}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
watch: true
|
||||||
|
},
|
||||||
|
webpackServer: {
|
||||||
|
noInfo: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
10
package.json
10
package.json
|
@ -59,6 +59,14 @@
|
||||||
"parallelshell": "^1.2.0",
|
"parallelshell": "^1.2.0",
|
||||||
"rimraf": "^2.4.3",
|
"rimraf": "^2.4.3",
|
||||||
"source-map-loader": "^0.1.5",
|
"source-map-loader": "^0.1.5",
|
||||||
"webpack": "^1.12.13"
|
"webpack": "^1.12.13",
|
||||||
|
"karma": ">=0.0.0",
|
||||||
|
"karma-cli": ">=0.0.0",
|
||||||
|
"karma-mocha": ">=0.0.0",
|
||||||
|
"karma-webpack": ">=0.0.0",
|
||||||
|
"karma-sourcemap-loader": ">=0.0.0",
|
||||||
|
"karma-chrome-launcher": ">=0.0.0",
|
||||||
|
"mocha": ">=0.0.0",
|
||||||
|
"expect": ">=0.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
12
src/tests/components/structures/MatrixChat-test.js
Normal file
12
src/tests/components/structures/MatrixChat-test.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
var React = require('react/addons'),
|
||||||
|
TestUtils = React.addons.TestUtils,
|
||||||
|
expect = require('expect'),
|
||||||
|
ScatterPlot = require('');
|
||||||
|
|
||||||
|
var sdk = require("matrix-react-sdk");
|
||||||
|
sdk.loadSkin(require('../../../component-index'));
|
||||||
|
|
||||||
|
var MatrixChat = sdk.getComponent('structures.MatrixChat');
|
||||||
|
|
||||||
|
describe('MatrixChat', function () {
|
||||||
|
});
|
3
tests.webpack.js
Normal file
3
tests.webpack.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
// tests.webpack.js
|
||||||
|
var context = require.context('./src', true, /-test\.jsx?$/);
|
||||||
|
context.keys().forEach(context);
|
Loading…
Add table
Reference in a new issue