diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2020-10-14 22:01:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 15:01:03 +0200 |
commit | e9f02c231473ba42f506a895734d445cd31d379f (patch) | |
tree | ae13bae794dc2376c9720d476647b545f4d74fc1 | |
parent | e2a1a7c937b67d050e7e3287d7e5dbc6ffd9b168 (diff) |
fix(console): fix the test cases of function inspections (#7965)
-rw-r--r-- | cli/tests/unit/console_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts index 00a5927b1..ee9f86366 100644 --- a/cli/tests/unit/console_test.ts +++ b/cli/tests/unit/console_test.ts @@ -354,10 +354,10 @@ unitTest(function consoleTestStringifyFunctionWithPrototypeRemoved(): void { const af = async function af() {}; Reflect.setPrototypeOf(af, null); assertEquals(stringify(af), "[Function: af]"); - const gf = function gf() {}; + const gf = function* gf() {}; Reflect.setPrototypeOf(gf, null); assertEquals(stringify(gf), "[Function: gf]"); - const agf = function agf() {}; + const agf = async function* agf() {}; Reflect.setPrototypeOf(agf, null); assertEquals(stringify(agf), "[Function: agf]"); }); |