Jay Traband e2f2ca61e6 chore(dev-tooling): small fixes and alpha.53
closes #486
add missing karma-test-shim.js
update test files
alpha.53
exclude example-config.json from plunkers
2015-12-12 20:25:19 -08:00

20 lines
736 B
TypeScript

import { iit,it, ddescribe, describe, expect, injectAsync, TestComponentBuilder, beforeEachProviders } from 'angular2/testing';
import { provide, Type } from 'angular2/core';
import { AppComponent } from './app.component';
type TCB = TestComponentBuilder;
describe('AppComponent', () => {
beforeEachProviders(() => <Type[]> []);
it('should have correct text', injectAsync([TestComponentBuilder], (tcb: TCB) => {
return tcb.createAsync(AppComponent).then((fixture) => {
// fixture.detectChanges();
var compiled = fixture.debugElement.nativeElement;
expect(compiled).toContainText('My First Angular 2 App');
expect(compiled.querySelector('h1')).toHaveText('My First Angular 2 App');
});
}));
});