Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmahalwy committed Oct 16, 2015
1 parent 0a3073a commit e8a46e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"scripts": {
"test": "npm run lint && ./node_modules/karma/bin/karma start --browsers PhantomJS --single-run",
"test:watch": "./node_modules/karma/bin/karma start",
"dev": "NODE_ENV=developement node webpack-dev-server.js & PORT=3001 NODE_ENV=developement nodemon start.js -e js,jsx",
"watch:test": "./node_modules/karma/bin/karma start",
"lint": "eslint ./src/scripts/**/*.js",
"start": "NODE_PATH=\"./src\" node ./start",
"build": "node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack.prod.config.js",
Expand Down
5 changes: 2 additions & 3 deletions tests/client/components/audioplayer/Audioplayer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ describe('Audioplayer', function() {
ReactTestUtils.Simulate.click(node.querySelector('.audioplayer-repeat label'));
ReactTestUtils.Simulate.click(node.querySelector('.ss-play'));

clock.tick(1001);
clock.tick(1002);

expect(foundComponent.changeAyah.args[0][0]).to.eql(1);
expect(foundComponent.changeAyah.args[0][1]).to.eql(true);
expect(foundComponent.props.currentAudio.currentTime).to.eql(0);
foundComponent.props.currentAudio.pause();
done();
});
Expand Down

0 comments on commit e8a46e4

Please sign in to comment.