mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Side menu controller with tests
This commit is contained in:
16
hacking/SideMenu.unit.js
Normal file
16
hacking/SideMenu.unit.js
Normal file
@ -0,0 +1,16 @@
|
||||
describe('SideMenu', function() {
|
||||
var menu;
|
||||
|
||||
beforeEach(function() {
|
||||
var d = document.createElement('div');
|
||||
menu = new SideMenu({
|
||||
el: d,
|
||||
width: 270
|
||||
});
|
||||
});
|
||||
|
||||
it('Should init', function() {
|
||||
expect(menu.width).toEqual(270);
|
||||
expect(menu.isEnabled).toEqual(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user