Skip to content

Commit

Permalink
Merge pull request #2 from henrahmagix/master
Browse files Browse the repository at this point in the history
Return since() fn from require(), instead of empty
  • Loading branch information
avrelian authored Sep 20, 2017
2 parents 25a83d7 + 143f958 commit 57478c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion jasmine2-custom-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
};

var defineSince = function() {
global.since = function(customMessage) {
return global.since = function(customMessage) {
return {
expect: wrapExpect(global.expect, customMessage)
};
Expand Down

0 comments on commit 57478c3

Please sign in to comment.