Skip to content

Commit

Permalink
test: verify clear return value
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed May 29, 2024
1 parent 5f80235 commit fbcef7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ describe('clear', function() {
);

// when
clear(node);
var cleared = clear(node);

expect(node.childNodes.length).to.eql(0);
expect(cleared).to.eql(node);
expect(cleared.childNodes.length).to.eql(0);
});

});

0 comments on commit fbcef7a

Please sign in to comment.