Skip to content

Commit 1219c32

Browse files
committed
begin fix unit test related to angular/angular-cli#2206 probably not the right solution...
migrate to yarn
1 parent 212c19d commit 1219c32

File tree

5 files changed

+10967
-2
lines changed

5 files changed

+10967
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"lint": "eslint .",
77
"start": "node .",
8-
"posttest": "npm run lint && nsp check",
9-
"setup": "npm install && cd webapp && npm install"
8+
"posttest": "yarn lint && nsp check",
9+
"setup": "yarn install && cd webapp && yarn install"
1010
},
1111
"dependencies": {
1212
"@mean-expert/loopback-component-realtime": "^1.0.0-beta.8",

webapp/src/app/app.component.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
import { TestBed, async } from '@angular/core/testing';
44
import { AppComponent } from './app.component';
5+
import { FormsModule } from '@angular/forms';
56

67
describe('App: Webapp', () => {
78
beforeEach(() => {
89
TestBed.configureTestingModule({
910
declarations: [
1011
AppComponent
1112
],
13+
imports: [ FormsModule ]
1214
});
1315
});
1416

webapp/src/typings.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33

44
declare var System: any;
55
declare var require: any;
6+
declare var describe: any;
7+
declare var expect: any;
8+
declare var beforeEach: any;
9+
declare var it: any;

0 commit comments

Comments
 (0)