mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-06 12:30:10 +08:00
fix power-assert/power-assert-tests.ts
This commit is contained in:
1 parent
1e1e5ec5fa
commit
91f7f2afa4
1 file changed
+2
-2
@@ -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