From 5c6d87567261849d13b6af17772ed144597f6a38 Mon Sep 17 00:00:00 2001 From: Steve Mayes Date: Sun, 28 Feb 2016 14:22:16 -0500 Subject: [PATCH] Updated test for the inject function Updated the test for the inject function to assign it to a variable typed to ng.IPromise to test/verify that method's return type. --- oclazyload/oclazyload-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oclazyload/oclazyload-tests.ts b/oclazyload/oclazyload-tests.ts index 3a436b14a..e9c4661e2 100644 --- a/oclazyload/oclazyload-tests.ts +++ b/oclazyload/oclazyload-tests.ts @@ -89,7 +89,7 @@ angular.module('app').controller(['$ocLazyLoadProvider', function ($ocLazyLoad: 'testModule2.js' ]); - $ocLazyLoad.inject('testModule'); + var promise: ng.IPromise = $ocLazyLoad.inject('testModule'); $ocLazyLoad.toggleWatch(true); -}]); \ No newline at end of file +}]);