test(): Remove main method wrapper from all test files (#494)

Closes #480
This commit is contained in:
trik
2016-05-23 17:33:58 +02:00
committed by Jeremy Elbourn
parent f428ded4f4
commit e8cf256789
16 changed files with 2683 additions and 2690 deletions
+1 -6
View File
@@ -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);