(response: string | null)
| 117 | } |
| 118 | |
| 119 | complete(response: string | null) { |
| 120 | if (response == null) { |
| 121 | this.reject(`Failed to load ${this.url}`); |
| 122 | } else { |
| 123 | this.resolve(response); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | getPromise(): Promise<string> { |
| 128 | return this.promise; |
no test coverage detected