Files
angular-docs-cn/modules/@angular/core/test/matchers_spec.ts
T

22 lines
688 B
TypeScript
Raw Normal View History

2016-06-08 16:38:52 -07:00
import {describe, it, iit, ddescribe, expect, tick, beforeEach,} from '../testing';
import {getDOM} from '../../platform-browser/src/dom/dom_adapter';
export function main() {
describe('testing', () => {
2016-06-08 16:38:52 -07:00
describe('toHaveCssClass', () => {
it('should assert that the CSS class is present', () => {
var el = getDOM().createElement('div');
getDOM().addClass(el, 'matias');
expect(el).toHaveCssClass('matias');
});
2016-06-08 16:38:52 -07:00
it('should assert that the CSS class is not present', () => {
var el = getDOM().createElement('div');
getDOM().addClass(el, 'matias');
expect(el).not.toHaveCssClass('fatias');
});
});
});
}