Skip to content

Commit

Permalink
adjust test output for #2914
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Feb 13, 2023
1 parent 631a563 commit d8b028f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/end-to-end-tests.js
Expand Up @@ -4228,7 +4228,7 @@ for (let flags of [[], ['--target=es6']]) {
declare [(() => ++b)()]
}
const foo = new Foo
if (b !== 2 || 'a' in foo || 1 in foo || 'c' in foo || 2 in foo) throw 'fail'
if (b !== 1 || 'a' in foo || 1 in foo || 'c' in foo || 2 in foo) throw 'fail'
`,
}),
test(['in.ts', '--outfile=node.js'].concat(flags), {
Expand All @@ -4241,7 +4241,7 @@ for (let flags of [[], ['--target=es6']]) {
declare [(() => ++b)()]
}
const foo = new Foo
if (b !== 2 || !('a' in foo) || !(1 in foo) || 'c' in foo || 2 in foo) throw 'fail'
if (b !== 1 || !('a' in foo) || !(1 in foo) || 'c' in foo || 2 in foo) throw 'fail'
`,
'tsconfig.json': `{
"compilerOptions": {
Expand Down

0 comments on commit d8b028f

Please sign in to comment.