forked from boranton/testcafe-workshop
add assertions
This commit is contained in:
parent
b1b61939f6
commit
e7ed7b640f
@ -1,7 +1,7 @@
|
||||
module.exports = config => {
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['mocha'],
|
||||
frameworks: ['mocha', 'chai'],
|
||||
files: [
|
||||
'src/**/*.test.js',
|
||||
],
|
||||
|
||||
@ -9,12 +9,14 @@
|
||||
"babel-preset-es2015": "6.13.2",
|
||||
"babel-preset-es2016": "6.11.3",
|
||||
"babel-preset-stage-2": "6.13.0",
|
||||
"chai": "3.5.0",
|
||||
"css-loader": "0.23.1",
|
||||
"eslint": "3.2.2",
|
||||
"eslint-config-kentcdodds": "^9.0.0",
|
||||
"ghooks": "1.3.2",
|
||||
"http-server": "0.9.0",
|
||||
"karma": "1.1.2",
|
||||
"karma-chai": "0.1.0",
|
||||
"karma-chrome-launcher": "1.0.1",
|
||||
"karma-mocha": "1.1.1",
|
||||
"mocha": "3.0.1",
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
describe('test', () => {
|
||||
it('works', () => {
|
||||
// test stuff
|
||||
expect(true).to.be.true
|
||||
})
|
||||
it('works again', () => {
|
||||
// other stuff
|
||||
expect('hi').to.equal('hi')
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user