Skip to content

Commit

Permalink
Ensure tests are also run against compiled code
Browse files Browse the repository at this point in the history
  • Loading branch information
apendua committed Dec 18, 2017
1 parent df6f0c0 commit 6571d6c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: node_js
install:
- (cd ddp-redux && npm install)
script:
- (cd ddp-redux && npm run test)
- (cd ddp-redux && npm run test && npm run test-lib)
node_js:
- "4"
- "6"
Expand Down
3 changes: 2 additions & 1 deletion ddp-connector/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/node_modules
/package-lock.json
/package-lock.json
/npm-debug.log
1 change: 1 addition & 0 deletions ddp-redux/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/lib
/node_modules
/package-lock.json
/npm-debug.log
4 changes: 0 additions & 4 deletions ddp-redux/index.js

This file was deleted.

4 changes: 2 additions & 2 deletions ddp-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "A redux based DDP client",
"main": "lib/index.js",
"scripts": {
"test": "mocha --compilers js:babel-core/register 'src/**/*.test.*'",
"test-watch": "mocha --watch --compilers js:babel-core/register 'src/**/*.test.*'",
"test": "mocha --require src/shim.js --compilers js:babel-core/register 'src/**/*.test.*'",
"test-watch": "mocha --require src/shim.js --watch --compilers js:babel-core/register 'src/**/*.test.*'",
"test-lib": "mocha --require lib/shim.js 'lib/**/*.test.*'",
"build": "babel src/ -d lib/",
"build-watch": "watch 'npm run build' ./src",
Expand Down
2 changes: 1 addition & 1 deletion ddp-redux/src/modules/connection/middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('Test module - connection - middleware', () => {
}]);
});

it('should dispatch CONNECT action when socet emits "open"', function () {
it('should dispatch CONNECT action when socket emits "open"', function () {
const store = this.mockStore(createInitialState('1', { state: DDP_CONNECTION_STATE__DISCONNECTED }));
const ddpMessage = {
support: ['1'],
Expand Down

0 comments on commit 6571d6c

Please sign in to comment.