mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
test(): Remove main method wrapper from all test files (#494)
Closes #480
This commit is contained in:
@@ -46,12 +46,7 @@ System.import('system-config.js').then(function() {
|
||||
return Promise.all(
|
||||
allSpecFiles.map(function (moduleName) {
|
||||
return System.import(moduleName).then(function(module) {
|
||||
// TODO(jelbourn): remove `main` method from tests and this check.
|
||||
if (module.hasOwnProperty('main')) {
|
||||
return module.main();
|
||||
} else {
|
||||
return module;
|
||||
}
|
||||
return module;
|
||||
});
|
||||
}));
|
||||
}).then(__karma__.start, __karma__.error);
|
||||
|
||||
Reference in New Issue
Block a user