Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A new property is added when it is an object #1

Open
kapooostin opened this issue Jul 3, 2017 · 0 comments
Open

A new property is added when it is an object #1

kapooostin opened this issue Jul 3, 2017 · 0 comments
Assignees
Labels

Comments

@kapooostin
Copy link

Here is a failing test for that case:

it('should not add new property when it is an object', function() {
    var result = extend({troll: 'face'}, {rofl: {rofl: 'copter'}});
    
    expect(result).to.not.have.property('rofl');
});
@zarkoselak zarkoselak self-assigned this Jul 3, 2017
@zarkoselak zarkoselak added the bug label Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants