diff --git a/README.md b/README.md index 2f8aed6..efe00b4 100644 --- a/README.md +++ b/README.md @@ -108,6 +108,10 @@ $ npm install jasmine2-custom-message --save-dev ```js require('jasmine2-custom-message'); ``` +* or be explicit in any functional scope +```js +var since = require('jasmine2-custom-message'); +``` ## Change log diff --git a/jasmine2-custom-message.js b/jasmine2-custom-message.js index 4683a3e..a6b3f3c 100644 --- a/jasmine2-custom-message.js +++ b/jasmine2-custom-message.js @@ -74,7 +74,7 @@ }; var defineSince = function() { - global.since = function(customMessage) { + return global.since = function(customMessage) { return { expect: wrapExpect(global.expect, customMessage) };