This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 30
30
* OR, ` gulp watch ` and open ` .dist/app/ngReactNative/ios/ngReactNative.xcodeproj ` in Xcode and hit ` Run `
31
31
32
32
Tests:
33
+ * ` gulp test.node ` to run tests in Node
33
34
* ` gulp test.browser ` to run tests in Chrome
34
35
35
36
Doc:
Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ jrunner.addSpecFiles(specFiles);
41
41
42
42
var testingPlatformServer = require ( '@angular/platform-server/testing/server.js' ) ;
43
43
var testing = require ( '@angular/core/testing.js' ) ;
44
- testing . setBaseTestProviders ( testingPlatformServer . TEST_SERVER_PLATFORM_PROVIDERS ,
45
- testingPlatformServer . TEST_SERVER_APPLICATION_PROVIDERS ) ;
44
+
45
+ testing . TestBed . initTestEnvironment (
46
+ testingPlatformServer . ServerTestingModule , testingPlatformServer . platformServerTesting ( ) ) ;
47
+ require ( 'zone.js/dist/jasmine-patch.js' ) ;
46
48
47
49
jrunner . execute ( ) ;
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1-alpha.15" ,
4
4
"description" : " A React Native renderer for Angular 2" ,
5
5
"scripts" : {
6
- "test" : " gulp test.browser/ci" ,
6
+ "test" : " gulp test.browser/ci && gulp test.node/ci " ,
7
7
"postinstall" : " typings install"
8
8
},
9
9
"repository" : {
Original file line number Diff line number Diff line change 1
- if ( typeof global . window === "undefined" ) global . window = { } ;
1
+ if ( typeof global . window === "undefined" ) global . window = global ;
2
2
if ( typeof global . document === "undefined" ) global . document = { createElement : ( ) => { return { style : { } } ; } } ;
3
3
var hammer = ( typeof global . window . Hammer === "undefined" ) ? require ( 'hammerjs' ) : global . window . Hammer ;
4
4
You can’t perform that action at this time.
0 commit comments