Ensure tests of non-returning functions don't cause unreachability errors (#38596)

This commit is contained in:
Anders Hejlsberg 2019-09-25 10:34:12 -07:00 committed by GitHub
parent 805bb29adb
commit 24cd81ea1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -70,11 +70,11 @@ import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer, transcode,
assert.equal(3, "3", "uses == comparator");
assert.fail('stuff broke');
if (!!true) assert.fail('stuff broke');
assert.fail('actual', 'expected', 'message');
if (!!true) assert.fail('actual', 'expected', 'message');
assert.fail(1, 2, undefined, '>');
if (!!true) assert.fail(1, 2, undefined, '>');
assert.ifError(0);

View File

@ -40,7 +40,7 @@ file.message('test', {
file.message('test', { start: 'invalid point' }); // $ExpectError
file.fail('test');
if (!!true) file.fail('test');
const infoMessage: vfileMessage.VFileMessage = file.info('test');