mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-27 12:30:03 +00:00
fix power-assert/power-assert-tests.ts
This commit is contained in:
@@ -19,7 +19,7 @@ assert.throws(() => {
|
||||
}, undefined, "DODGED IT");
|
||||
|
||||
assert.doesNotThrow(() => {
|
||||
if (false) {
|
||||
if (Math.random() < 0.5) {
|
||||
throw "a hammer at your face";
|
||||
}
|
||||
}, undefined, "What the...*crunch*");
|
||||
@@ -44,7 +44,7 @@ customizedAssert1.throws(() => {
|
||||
}, undefined, "DODGED IT");
|
||||
|
||||
customizedAssert1.doesNotThrow(() => {
|
||||
if (false) {
|
||||
if (Math.random() < 0.5) {
|
||||
throw "a hammer at your face";
|
||||
}
|
||||
}, undefined, "What the...*crunch*");
|
||||
|
||||
Reference in New Issue
Block a user