Skip to content

Commit

Permalink
test(append): simplify spec
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Oct 4, 2018
1 parent 13c83e1 commit ddeaba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions test/spec/append.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ describe('append', function() {
var result = append(container, svg);

// then
expect(result).to.exist;
expect(result.nodeName.toLowerCase()).to.eql('div');
expect(result).to.equal(container);

expect(svg.parentNode).to.eql(result);
});
Expand Down
6 changes: 3 additions & 3 deletions test/spec/appendTo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ describe('appendTo', function() {

// given
var container = createContainer();
var svg = create('svg');

// when
var result = appendTo(create('svg'), container);
var result = appendTo(svg, container);

// then
expect(result).to.exist;
expect(result.nodeName).to.eql('svg');
expect(result).to.equal(svg);

expect(result.parentNode).to.eql(container);
});
Expand Down

0 comments on commit ddeaba9

Please sign in to comment.