This repository was archived by the owner on Sep 4, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 "watch" : " babel --watch -d lib/ src/" ,
3737 "jshint" : " jshint src/. test/. --config" ,
3838 "mocha" : " mocha test/ --compilers js:babel-core/register --recursive --timeout 5000" ,
39- "test" : " npm run jshint && npm run mocha"
39+ "test" : " npm run compile && npm run jshint && npm run mocha"
4040 },
4141 "directories" : {
4242 "lib" : " lib"
Original file line number Diff line number Diff line change @@ -19,4 +19,7 @@ function socketio(socket) {
1919 return base ( socket ) ;
2020}
2121
22- export { socketio , base as primus } ;
22+ export default {
23+ socketio,
24+ primus : base
25+ } ;
Original file line number Diff line number Diff line change @@ -78,5 +78,10 @@ module.exports = function(service) {
7878 done ( ) ;
7979 } ) ;
8080 } ) ;
81+
82+ it ( 'is CommonJS compatible' , ( ) => {
83+ console . log ( require ( '../lib/client' ) ) ;
84+ assert . equal ( typeof require ( '../lib/client' ) , 'function' ) ;
85+ } ) ;
8186 } ) ;
8287} ;
You can’t perform that action at this time.
0 commit comments