Skip to content

Commit

Permalink
Add test for Object.craete(null) and prepare for release 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Moshe Kolodny committed Jul 4, 2017
1 parent d19767a commit cee08c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -10,6 +10,7 @@ node_js:
- '5'
- '6'
- '7'
- '8'
script: "npm run test-travis"
# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "immutability-helper",
"version": "2.2.2",
"version": "2.2.3",
"description": "mutate a copy of data without changing the original source",
"main": "index.js",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions test.js
Expand Up @@ -394,4 +394,9 @@ describe('update', function() {
});
}

it('supports objects without prototypes', function() {
var obj = Object.create(null);
expect(update.bind(null, obj, {$merge: {a: 'b'}})).toNotThrow()
});

});

0 comments on commit cee08c9

Please sign in to comment.