Skip to content

Commit

Permalink
menu: Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sipayRT committed Jun 19, 2014
1 parent c3b0c16 commit 65658c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common.blocks/menu/menu.spec.js
Expand Up @@ -92,6 +92,13 @@ describe('menu', function() {
spy.args[0][1].should.be.equal(menuItems[1]);
});
});

describe('setContent()', function() {
it('should update menu content', function() {
menu.setContent('content');
menu.domElem.html().should.be.equal('content');
});
});
});

provide();
Expand Down

0 comments on commit 65658c4

Please sign in to comment.