Skip to content

Commit 8c49ea5

Browse files
committed
Print error on test failure catch
1 parent 87d6261 commit 8c49ea5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/entropy.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ test('Custom 64 chars', t => {
459459
t.is(string, 'NzLoPDi-JiAa')
460460
}
461461
catch(error) {
462+
console.log('Error: ' + error)
462463
t.fail()
463464
}
464465

@@ -476,6 +477,7 @@ test('Custom 32 chars', t => {
476477
t.is(string, 'mHRrbgQlTqF')
477478
}
478479
catch(error) {
480+
console.log('Error: ' + error)
479481
t.fail()
480482
}
481483

@@ -492,6 +494,7 @@ test('Custom 16 chars', t => {
492494
t.is(string, 'C7C90')
493495
}
494496
catch(error) {
497+
console.log('Error: ' + error)
495498
t.fail()
496499
}
497500

@@ -508,6 +511,7 @@ test('Custom 8 chars', t => {
508511
t.is(string, 'gbheeeahgc')
509512
}
510513
catch(error) {
514+
console.log('Error: ' + error)
511515
t.fail()
512516
}
513517

@@ -524,6 +528,7 @@ test('Custom 4 chars', t => {
524528
t.is(string, 'acaaggat')
525529
}
526530
catch(error) {
531+
console.log('Error: ' + error)
527532
t.fail()
528533
}
529534

@@ -540,6 +545,7 @@ test('Custom 2 chars', t => {
540545
t.is(string, 'TTTHHHTTTTTHTHHT')
541546
}
542547
catch(error) {
548+
console.log('Error: ' + error)
543549
t.fail()
544550
}
545551

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy