-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
# Conflicts: # doc/CHANGELOG.md # package.json
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ gulp.task("rebuild", (cb) => { | |
return runSeq( | ||
"clean", | ||
"build", | ||
"copy-dist", | ||
cb); | ||
} | ||
return runSeq( | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./logging/logging"; | ||
export * from "./module"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare class CoreModule { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// reference: https://github.com/ocombe/ng2-translate/blob/master/karma-test-shim.js | ||
|
||
// Turn on full stack traces in errors to help debugging | ||
Error.stackTraceLimit = Infinity; | ||
|
||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; | ||
|
||
// Cancel Karma"s synchronous start, | ||
// we will call `__karma__.start()` later, once all the specs are loaded. | ||
__karma__.loaded = function () { }; | ||
|
||
System.config({ | ||
baseURL: "/base/", | ||
defaultJSExtensions: true, | ||
paths: { | ||
"n:*": "node_modules/*" | ||
}, | ||
map: { | ||
"@angular": "n:@angular", | ||
"@ssv": "n:@ssv", | ||
"rxjs": "n:rxjs", | ||
}, | ||
packages: { | ||
"@angular/common": { main: "index.js", defaultExtension: "js" }, | ||
"@angular/compiler": { main: "index.js", defaultExtension: "js" }, | ||
"@angular/core": { main: "index.js", defaultExtension: "js" }, | ||
"@angular/platform-browser": { main: "index.js", defaultExtension: "js" }, | ||
"@angular/platform-browser-dynamic": { main: "index.js", defaultExtension: "js" }, | ||
|
||
"@ssv/ng2-core": { main: "dist/amd/index.js", defaultExtension: "js" }, | ||
} | ||
}); | ||
|
||
System.import("@angular/platform-browser/src/browser/browser_adapter") | ||
.then(function (browser_adapter) { | ||
browser_adapter.BrowserDomAdapter.makeCurrent(); | ||
}) | ||
.then(function () { | ||
return Promise.all([ | ||
System.import("@angular/core/testing"), | ||
System.import("@angular/platform-browser-dynamic/testing") | ||
]).then(function (providers) { | ||
var testing = providers[0]; | ||
var testingBrowser = providers[1]; | ||
|
||
testing.TestBed.initTestEnvironment( | ||
testingBrowser.BrowserDynamicTestingModule, | ||
testingBrowser.platformBrowserDynamicTesting() | ||
); | ||
}); | ||
}) | ||
.then(function () { | ||
return Promise.all(resolveTestFiles()); | ||
}) | ||
.then(function () { | ||
__karma__.start(); | ||
}, function (error) { | ||
__karma__.error(error.stack || error); | ||
}); | ||
|
||
function onlySpecFiles(path) { | ||
return /[\.|_]spec\.js$/.test(path); | ||
} | ||
function resolveTestFiles() { | ||
return Object.keys(window.__karma__.files) // All files served by Karma. | ||
.filter(onlySpecFiles) | ||
.map(function (moduleName) { | ||
return System.import(moduleName); | ||
}); | ||
} |