Skip to content

Commit 7287358

Browse files
🔍 test: Fix test titles.
1 parent 4c57437 commit 7287358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/encode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function success ( t , string , options , expected ) {
1212

1313
}
1414

15-
success.title = ( _ , string , options , expected ) => `encode '${string}' should succeed` ;
15+
success.title = ( _ , string , options , expected ) => `encode '${JSON.stringify(string)}' should succeed` ;
1616

1717
function failure ( t , string , options , ExpectedError , position ) {
1818

@@ -25,7 +25,7 @@ function failure ( t , string , options , ExpectedError , position ) {
2525

2626
}
2727

28-
failure.title = ( _ , string , options , expected ) => `encode '${string}' should fail` ;
28+
failure.title = ( _ , string , options , expected ) => `encode '${JSON.stringify(string)}' should fail` ;
2929

3030

3131
test( success , 'A' , null , [ 0x41 ] ) ;

0 commit comments

Comments
 (0)