@@ -21,9 +21,7 @@ import { fail, hardAssert } from '../../../src/util/assert';
2121
2222describe ( 'hardAssert' , ( ) => {
2323 it ( 'includes the error code as hex' , ( ) => {
24- expect ( ( ) => hardAssert ( false , 0x1234 , 'a message here' ) ) . to . throw (
25- '12345678'
26- ) ;
24+ expect ( ( ) => hardAssert ( false , 0x1234 , 'a message here' ) ) . to . throw ( '1234' ) ;
2725 } ) ;
2826
2927 it ( 'includes the context' , ( ) => {
@@ -40,7 +38,7 @@ describe('hardAssert', () => {
4038
4139 describe ( 'without message' , ( ) => {
4240 it ( 'includes the error code as hex' , ( ) => {
43- expect ( ( ) => hardAssert ( false , 0x1234 ) ) . to . throw ( '12345678 ' ) ;
41+ expect ( ( ) => hardAssert ( false , 0x1234 ) ) . to . throw ( '1234 ' ) ;
4442 } ) ;
4543
4644 it ( 'includes the context' , ( ) => {
@@ -58,7 +56,7 @@ describe('hardAssert', () => {
5856
5957describe ( 'fail' , ( ) => {
6058 it ( 'includes the error code as hex' , ( ) => {
61- expect ( ( ) => fail ( 0x1234 , 'a message here' ) ) . to . throw ( '12345678 ' ) ;
59+ expect ( ( ) => fail ( 0x1234 , 'a message here' ) ) . to . throw ( '1234 ' ) ;
6260 } ) ;
6361
6462 it ( 'includes the context' , ( ) => {
@@ -75,7 +73,7 @@ describe('fail', () => {
7573
7674 describe ( 'without message' , ( ) => {
7775 it ( 'includes the error code as hex' , ( ) => {
78- expect ( ( ) => fail ( 0x1234 ) ) . to . throw ( '12345678 ' ) ;
76+ expect ( ( ) => fail ( 0x1234 ) ) . to . throw ( '1234 ' ) ;
7977 } ) ;
8078
8179 it ( 'includes the context' , ( ) => {
0 commit comments