Skip to content

Commit

Permalink
test: verify undefined #assign handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jun 22, 2021
1 parent 9515a57 commit ee16167
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/object.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ describe('object', function() {
});


it('should handle null objects', function() {

// when
const result = assign({ bar: 'Bar' }, null, undefined, false, 0, { foo: 'Foo' });

// then
expect(result).to.exist;
});


it('should not override prototype', function() {

function Bar() {}
Expand Down

0 comments on commit ee16167

Please sign in to comment.