mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Random angular stuff and testing things
This commit is contained in:
15
ext/angular/test/ionicContent.unit.js
Normal file
15
ext/angular/test/ionicContent.unit.js
Normal file
@ -0,0 +1,15 @@
|
||||
describe('Ionic Content directive', function() {
|
||||
var compile, element, scope;
|
||||
|
||||
beforeEach(module('ionic.ui.content'));
|
||||
|
||||
beforeEach(inject(function($compile, $rootScope) {
|
||||
compile = $compile;
|
||||
scope = $rootScope;
|
||||
}));
|
||||
|
||||
it('Has content class', function() {
|
||||
element = compile('<content></content>')(scope);
|
||||
expect(element.hasClass('content')).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user