Skip to content

Commit

Permalink
Fix: Correct a typo in global assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed May 14, 2018
1 parent 1786219 commit 2bfd37f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function getEmitter(){
}

if(!global[namespace]){
global[namespace] = getEmitter;
global[namespace] = ee;
}
}

Expand Down
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ describe('sparkles', function(){
expect(global.__sparklesEventEmitter).to.not.exist();
sparkles.on('test', noop);
expect(global.__sparklesEventEmitter).to.exist();
expect(global.__sparklesEventEmitter.on).to.be.a.function();
done();
});

Expand Down

0 comments on commit 2bfd37f

Please sign in to comment.