mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 04:24:30 +08:00
Made myService in bard tests minification safe
This commit is contained in:
@@ -9,8 +9,6 @@ module bardTests {
|
||||
assert = chai.assert;
|
||||
|
||||
class MyService {
|
||||
static $inject = ['$q'];
|
||||
|
||||
constructor(private $q: angular.IQService) {}
|
||||
|
||||
remoteCall(): angular.IPromise<string[]> {
|
||||
@@ -20,6 +18,7 @@ module bardTests {
|
||||
}
|
||||
}
|
||||
|
||||
myService.$inject = ['$q'];
|
||||
function myService($q: angular.IQService) {
|
||||
return new MyService($q);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user