Tests organization and cleanup

Moved hacking tests to test folder, got rid of ionic=window.ionic for
wrapper functions in JS files.
This commit is contained in:
Max Lynch
2013-09-24 17:22:36 -05:00
parent 5aabbfbd0c
commit 37d708b05e
19 changed files with 75 additions and 74 deletions

View File

@ -0,0 +1,16 @@
describe('SideMenu', function() {
var menu;
beforeEach(function() {
var d = document.createElement('div');
menu = new ionic.views.SideMenu({
el: d,
width: 270
});
});
it('Should init', function() {
expect(menu.width).toEqual(270);
expect(menu.isEnabled).toEqual(true);
});
});