JS: Add test

This commit is contained in:
Asger Feldthaus
2020-04-02 11:33:56 +01:00
parent 32cf0f14dc
commit ccce0205b4
3 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
| tsTest.ts:4:12:4:19 | cache[x] | Missing await. This value is always a promise. |
| tst.js:8:9:8:13 | thing | Missing await. The value 'thing' is always a promise. |
| tst.js:10:9:10:13 | thing | Missing await. The value 'thing' is always a promise. |
| tst.js:12:15:12:19 | thing | Missing await. The value 'thing' is always a promise. |

View File

@@ -0,0 +1,5 @@
declare let cache: { [x: string]: Promise<any> };
function deleteCache(x: string) {
delete cache[x]; // OK
}

View File

@@ -0,0 +1,3 @@
{
"include": ["."]
}