From 25ef538d6f96a816e35674e947f0f2ca3ea3c88f Mon Sep 17 00:00:00 2001 From: Klaus Meinhardt Date: Fri, 1 Jun 2018 19:17:24 +0200 Subject: [PATCH] fix syntax error in unit test Fixes: https://github.com/Microsoft/TypeScript/pull/24474#pullrequestreview-125221016 --- src/harness/unittests/evaluation/forAwaitOf.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/harness/unittests/evaluation/forAwaitOf.ts b/src/harness/unittests/evaluation/forAwaitOf.ts index ece32e2426740..20ab5eed0cc92 100644 --- a/src/harness/unittests/evaluation/forAwaitOf.ts +++ b/src/harness/unittests/evaluation/forAwaitOf.ts @@ -9,7 +9,7 @@ describe("forAwaitOfEvaluation", () => { case 0: return { value: 1, done: false }; case 1: return { value: Promise.resolve(2), done: false }; case 2: return { value: new Promise(resolve => setTimeout(resolve, 100, 3)), done: false }; - default: return { value: undefined: done: true }; + default: return { value: undefined, done: true }; } } }; @@ -35,7 +35,7 @@ describe("forAwaitOfEvaluation", () => { case 0: return { value: 1, done: false }; case 1: return { value: Promise.resolve(2), done: false }; case 2: return { value: new Promise(resolve => setTimeout(resolve, 100, 3)), done: false }; - default: return { value: undefined: done: true }; + default: return { value: undefined, done: true }; } } }; @@ -61,7 +61,7 @@ describe("forAwaitOfEvaluation", () => { case 0: return { value: 1, done: false }; case 1: return { value: Promise.resolve(2), done: false }; case 2: return { value: new Promise(resolve => setTimeout(resolve, 100, 3)), done: false }; - default: return { value: undefined: done: true }; + default: return { value: undefined, done: true }; } } }; @@ -87,7 +87,7 @@ describe("forAwaitOfEvaluation", () => { case 0: return { value: 1, done: false }; case 1: return { value: Promise.resolve(2), done: false }; case 2: return { value: new Promise(resolve => setTimeout(resolve, 100, 3)), done: false }; - default: return { value: undefined: done: true }; + default: return { value: undefined, done: true }; } } }; @@ -102,4 +102,4 @@ describe("forAwaitOfEvaluation", () => { assert.instanceOf(result.output[1], Promise); assert.instanceOf(result.output[2], Promise); }); -}); \ No newline at end of file +});