angular2-counto
Version:
Awesome angular package for counting animations.
28 lines • 1.13 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var app_component_1 = require("./app.component");
var testing_1 = require("@angular/core/testing");
var platform_browser_1 = require("@angular/platform-browser");
describe('AppComponent', function () {
var de;
var comp;
var fixture;
beforeEach(testing_1.async(function () {
testing_1.TestBed.configureTestingModule({
declarations: [app_component_1.AppComponent]
})
.compileComponents();
}));
beforeEach(function () {
fixture = testing_1.TestBed.createComponent(app_component_1.AppComponent);
comp = fixture.componentInstance;
de = fixture.debugElement.query(platform_browser_1.By.css('h1'));
});
it('should create component', function () { return expect(comp).toBeDefined(); });
it('should have expected <h1> text', function () {
fixture.detectChanges();
var h1 = de.nativeElement;
expect(h1.innerText).toMatch(/angular/i, '<h1> should say something about "Angular"');
});
});
//# sourceMappingURL=app.component.spec.js.map
;