diff --git a/bardjs/bardjs-tests.ts b/bardjs/bardjs-tests.ts index 3aba6cade2..b033ffe3c7 100644 --- a/bardjs/bardjs-tests.ts +++ b/bardjs/bardjs-tests.ts @@ -9,8 +9,6 @@ module bardTests { assert = chai.assert; class MyService { - static $inject = ['$q']; - constructor(private $q: angular.IQService) {} remoteCall(): angular.IPromise { @@ -20,6 +18,7 @@ module bardTests { } } + myService.$inject = ['$q']; function myService($q: angular.IQService) { return new MyService($q); }