mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
21 lines
559 B
JavaScript
21 lines
559 B
JavaScript
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);
|
|
});
|
|
|
|
it('Has header', function() {
|
|
element = compile('<content has-header="true"></content>')(scope);
|
|
expect(element.hasClass('has-header')).toEqual(true);
|
|
});
|
|
});
|