Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #13 from feathersjs/fix-build-plus-steal-compatibi…
Browse files Browse the repository at this point in the history
…lity

Fix es6 build.
  • Loading branch information
marshallswain committed Nov 27, 2015
2 parents 25c273d + 10663c2 commit 681918c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"watch": "babel --watch -d lib/ src/",
"jshint": "jshint src/. test/. --config",
"mocha": "mocha test/ --compilers js:babel-core/register --recursive --timeout 5000",
"test": "npm run jshint && npm run mocha"
"test": "npm run compile && npm run jshint && npm run mocha"
},
"directories": {
"lib": "lib"
Expand Down
5 changes: 4 additions & 1 deletion src/sockets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ function socketio(socket) {
return base(socket);
}

export { socketio, base as primus };
export default {
socketio,
primus: base
};
8 changes: 8 additions & 0 deletions test/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,13 @@ module.exports = function(service) {
done();
});
});

it('is built correctly', () => {
assert.equal(typeof require('../lib/client'), 'function');
assert.equal(typeof require('../lib/client').jquery, 'function');
assert.equal(typeof require('../lib/client').request, 'function');
assert.equal(typeof require('../lib/client').socketio, 'function');
assert.equal(typeof require('../lib/client').primus, 'function');
});
});
};

0 comments on commit 681918c

Please sign in to comment.