Work around TS compiler error
This commit is contained in:
parent
2cd0c000bd
commit
7a3ef12134
|
@ -15,7 +15,7 @@
|
|||
// tslint:disable
|
||||
|
||||
import * as assert from "assert";
|
||||
import { all, output, Output, unknown } from "../index";
|
||||
import { all, output, Output, Resource, unknown } from "../index";
|
||||
import { asyncTest } from "./util";
|
||||
|
||||
function test(val: any, expected: any) {
|
||||
|
@ -51,7 +51,7 @@ function testResources(val: any, expected: any, resources: TestResource[], allRe
|
|||
assert.deepStrictEqual(asyncResources, new Set(allResources));
|
||||
|
||||
for (const res of syncResources) {
|
||||
if (!asyncResources.has(<TestResource>res)) {
|
||||
if (!asyncResources.has(<Resource><any>res)) {
|
||||
assert.fail(`async resources did not contain: ${(<TestResource><any>res).name}`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue