Remove broken, disused, quickstart unit tests

This commit is contained in:
Ward Bell 2016-01-28 15:36:45 -08:00
parent 9f692ffb27
commit e52cf35da7
3 changed files with 0 additions and 45 deletions

View File

@ -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');
});
}));
});

View File

@ -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);
});
});

View File

@ -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; }
};
}
};
}
});
});