From b1f884401b1888479aec12b1fd02b160dc7baf87 Mon Sep 17 00:00:00 2001 From: mauriziovitale84 Date: Fri, 22 Apr 2016 17:00:24 +0100 Subject: [PATCH] #17 Added Promise to test multiple files --- ng2-components/ng2-alfresco-login/tests-runner.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ng2-components/ng2-alfresco-login/tests-runner.html b/ng2-components/ng2-alfresco-login/tests-runner.html index 18aa6b965b..cd19c05267 100644 --- a/ng2-components/ng2-alfresco-login/tests-runner.html +++ b/ng2-components/ng2-alfresco-login/tests-runner.html @@ -31,8 +31,9 @@ }); // #3. Import the spec file explicitly - System.import('src/authentication.service.spec') - + Promise.all([ + System.import('src/authentication.service.spec') + ]) // #4. wait for all imports to load ... // then re-execute `window.onload` which // triggers the Jasmine test-runner start