From c2f6855a7b908905d1504a24cc920e29e76f02a6 Mon Sep 17 00:00:00 2001 From: Asger F Date: Fri, 20 Sep 2019 16:02:59 +0100 Subject: [PATCH] JS: Update tests --- .../TypeVariableTypes/SignatureTypeParameters.expected | 1 + .../ql/test/library-tests/TypeScript/Types/GetExprType.expected | 2 ++ 2 files changed, 3 insertions(+) diff --git a/javascript/ql/test/library-tests/TypeScript/TypeVariableTypes/SignatureTypeParameters.expected b/javascript/ql/test/library-tests/TypeScript/TypeVariableTypes/SignatureTypeParameters.expected index 36d84b19f3a..3b6ee6a25b6 100644 --- a/javascript/ql/test/library-tests/TypeScript/TypeVariableTypes/SignatureTypeParameters.expected +++ b/javascript/ql/test/library-tests/TypeScript/TypeVariableTypes/SignatureTypeParameters.expected @@ -1,5 +1,6 @@ | (x: D): D | 1 | 0 | D | no bound | | (x: () => E): E | 1 | 0 | E | no bound | +| (x: E[] \| (() => E)): E | 1 | 0 | E | no bound | | (x: E[]): E | 1 | 0 | E | no bound | | (callbackfn: (value: E, index: number, array: E[]) => va... | 1 | 0 | S | no bound | | (callbackfn: (value: T \| S, index: number, array: (T... | 1 | 0 | S | no bound | diff --git a/javascript/ql/test/library-tests/TypeScript/Types/GetExprType.expected b/javascript/ql/test/library-tests/TypeScript/Types/GetExprType.expected index fe1bcace0c4..371cdb05b21 100644 --- a/javascript/ql/test/library-tests/TypeScript/Types/GetExprType.expected +++ b/javascript/ql/test/library-tests/TypeScript/Types/GetExprType.expected @@ -64,10 +64,12 @@ | tst.ts:22:29:22:29 | 2 | 2 | | tst.ts:24:5:24:9 | array | number[] | | tst.ts:26:5:26:12 | voidType | () => void | +| tst.ts:26:15:26:24 | () => void | () => void | | tst.ts:27:5:27:17 | undefinedType | undefined | | tst.ts:28:5:28:12 | nullType | null | | tst.ts:28:22:28:25 | null | null | | tst.ts:29:5:29:13 | neverType | () => never | +| tst.ts:29:16:29:26 | () => never | () => never | | tst.ts:30:5:30:14 | symbolType | symbol | | tst.ts:31:7:31:22 | uniqueSymbolType | typeof uniqueSymbolType | | tst.ts:31:41:31:44 | null | null |