Remove broken, disused, quickstart unit tests
This commit is contained in:
parent
9f692ffb27
commit
e52cf35da7
|
@ -1,19 +0,0 @@
|
||||||
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');
|
|
||||||
});
|
|
||||||
}));
|
|
||||||
});
|
|
|
@ -1,11 +0,0 @@
|
||||||
describe('universal truths', () => {
|
|
||||||
it('should do math', () => {
|
|
||||||
expect(1 + 1).toEqual(2);
|
|
||||||
|
|
||||||
expect(5).toBeGreaterThan(4);
|
|
||||||
});
|
|
||||||
|
|
||||||
xit('should skip this', () => {
|
|
||||||
expect(4).toEqual(40);
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,15 +0,0 @@
|
||||||
beforeEach(() => {
|
|
||||||
jasmine.addMatchers({
|
|
||||||
toContainText: function() {
|
|
||||||
return {
|
|
||||||
compare: function(actual: any, expectedText: string) {
|
|
||||||
var actualText = actual.textContent;
|
|
||||||
return {
|
|
||||||
pass: actualText.indexOf(expectedText) > -1,
|
|
||||||
get message() { return 'Expected ' + actualText + ' to contain ' + expectedText; }
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Reference in New Issue