Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Commit 0ff94d8

Browse files
revert: platform-browser to v5.0.0 (#297)
1 parent c69e19b commit 0ff94d8

File tree

4 files changed

+30
-28
lines changed

4 files changed

+30
-28
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"editor.tabSize": 2,
44
"beautify.tabSize": 2,
55
"editor.insertSpaces": true,
6-
"autoimport.filesToScan": "src/**/*.{ts,tsx}"
6+
"autoimport.filesToScan": "src/**/*.{ts,tsx}",
7+
"typescript.tsdk": "node_modules/typescript/lib"
78
}

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
"devDependencies": {
5454
"@compodoc/compodoc": "^1.0.4",
5555
"@pwa/manifest": "^0.2.1",
56-
"@types/body-parser": "^1.16.7",
56+
"@types/body-parser": "^1.16.8",
5757
"@types/browser-sync": "^0.0.37",
5858
"@types/bunyan": "^1.8.3",
5959
"@types/clean-css": "^3.4.30",
60-
"@types/compression": "0.0.34",
60+
"@types/compression": "0.0.35",
6161
"@types/cookie-parser": "^1.4.1",
6262
"@types/dotenv": "^4.0.2",
6363
"@types/express": "^4.0.39",
@@ -136,8 +136,8 @@
136136
"@angular/forms": "5.0.1",
137137
"@angular/http": "5.0.1",
138138
"@angular/material": "^5.0.0-rc0",
139-
"@angular/platform-browser": "5.0.1",
140-
"@angular/platform-browser-dynamic": "5.0.1",
139+
"@angular/platform-browser": "5.0.0",
140+
"@angular/platform-browser-dynamic": "5.0.0",
141141
"@angular/platform-server": "5.0.1",
142142
"@angular/router": "5.0.1",
143143
"@angular/service-worker": "^5.0.1",

src/client/app/+about/about.component.spec.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
12
import { AboutComponent } from './about.component'
23
import { async, ComponentFixture, TestBed } from '@angular/core/testing'
34
import { Component } from '@angular/core'
45
import { AboutModule } from './about.module'
56
import { FirebaseDatabaseService } from '../shared/services/firebase-database.service'
67
import { of } from 'rxjs/observable/of'
7-
import { NoopAnimationsModule } from '@angular/platform-browser/animations'
8+
import { MaterialModule } from '../shared/material.module'
9+
10+
@Component({
11+
selector: 'test-component',
12+
template: '<pm-about></pm-about>'
13+
})
14+
class TestComponent {}
815

916
describe(AboutComponent.name, () => {
10-
let fixture: ComponentFixture<AboutComponent>
17+
let fixture: ComponentFixture<TestComponent>
1118

1219
beforeEach(async(() => {
1320
TestBed.configureTestingModule({
14-
imports: [AboutModule, NoopAnimationsModule],
21+
imports: [AboutModule, MaterialModule, BrowserAnimationsModule],
1522
declarations: [TestComponent],
1623
providers: [
1724
{ provide: FirebaseDatabaseService, useValue: new MockDb() }
@@ -20,7 +27,7 @@ describe(AboutComponent.name, () => {
2027
}))
2128

2229
beforeEach(async(() => {
23-
fixture = TestBed.createComponent(AboutComponent)
30+
fixture = TestBed.createComponent(TestComponent)
2431
}))
2532

2633
afterEach(async(() => {
@@ -34,12 +41,6 @@ describe(AboutComponent.name, () => {
3441
}))
3542
})
3643

37-
@Component({
38-
selector: 'test-component',
39-
template: '<pm-about></pm-about>'
40-
})
41-
class TestComponent {}
42-
4344
class MockDb {
4445
get() {
4546
return of('test')

0 commit comments

Comments
 (0)