Skip to content

Commit

Permalink
utility merge test
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 5, 2017
1 parent 81e807c commit ccebaef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/js/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,9 @@ describe("Optimization", function() {
});

describe("Utilities", function() {
it("should merge two objects", function() {
expect(Moon.util.extend({a: true, b: true}, {a: true, b: false, c: true})).to.deep.equal({a: true, b: false, c: true});
});
it("should extend an object", function() {
expect(Moon.util.extend({a: true, b: true}, {a: true, b: false, c: true})).to.deep.equal({a: true, b: false, c: true});
});
Expand Down

0 comments on commit ccebaef

Please sign in to comment.