mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
#272 Update 'datatable' karma config
This commit is contained in:
parent
aa63924262
commit
cd05bbfa15
@ -50,6 +50,21 @@ System.config(config);
|
|||||||
|
|
||||||
System.import('@angular/platform-browser/src/browser/browser_adapter')
|
System.import('@angular/platform-browser/src/browser/browser_adapter')
|
||||||
.then(function(browser_adapter) { browser_adapter.BrowserDomAdapter.makeCurrent(); })
|
.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.setBaseTestProviders(
|
||||||
|
testingBrowser.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
|
||||||
|
testingBrowser.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS);
|
||||||
|
|
||||||
|
})
|
||||||
.then(function() { return Promise.all(resolveTestFiles()); })
|
.then(function() { return Promise.all(resolveTestFiles()); })
|
||||||
.then(
|
.then(
|
||||||
function() {
|
function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user