@@ -285,7 +285,7 @@ testAssertionMessage(/abc/gim, '/abc/gim'); |
285 | 285 | testAssertionMessage(function f() {}, '[Function: f]'); |
286 | 286 | testAssertionMessage(function() {}, '[Function]'); |
287 | 287 | testAssertionMessage({}, '{}'); |
288 | | -testAssertionMessage(circular, '{\n- y: 1,\n- x: [Circular]\n- }'); |
| 288 | +testAssertionMessage(circular, '{\n- x: [Circular],\n- y: 1\n- }'); |
289 | 289 | testAssertionMessage({ a: undefined, b: null }, |
290 | 290 | '{\n- a: undefined,\n- b: null\n- }'); |
291 | 291 | testAssertionMessage({ a: NaN, b: Infinity, c: -Infinity }, |
@@ -593,8 +593,8 @@ assert.throws( |
593 | 593 | '\n' + |
594 | 594 | '- {}\n' + |
595 | 595 | '+ {\n' + |
596 | | - "+ loop: 'forever',\n" + |
597 | | - '+ [Symbol(nodejs.util.inspect.custom)]: [Function]\n' + |
| 596 | + '+ [Symbol(nodejs.util.inspect.custom)]: [Function],\n' + |
| 597 | + "+ loop: 'forever'\n" + |
598 | 598 | '+ }' |
599 | 599 | }); |
600 | 600 |
|
@@ -858,9 +858,12 @@ common.expectsError( |
858 | 858 | code: 'ERR_ASSERTION', |
859 | 859 | name: 'AssertionError [ERR_ASSERTION]', |
860 | 860 | message: `${start}\n${actExp}\n\n` + |
861 | | - " Comparison {\n name: 'TypeError',\n" + |
862 | | - " message: 'Wrong value',\n- code: 404\n" + |
863 | | - '+ code: 404,\n+ foo: undefined\n }' |
| 861 | + ' Comparison {\n' + |
| 862 | + ' code: 404,\n' + |
| 863 | + '+ foo: undefined,\n' + |
| 864 | + " message: 'Wrong value',\n" + |
| 865 | + " name: 'TypeError'\n" + |
| 866 | + ' }' |
864 | 867 | } |
865 | 868 | ); |
866 | 869 |
|
@@ -872,9 +875,13 @@ common.expectsError( |
872 | 875 | code: 'ERR_ASSERTION', |
873 | 876 | name: 'AssertionError [ERR_ASSERTION]', |
874 | 877 | message: `${start}\n${actExp}\n\n` + |
875 | | - " Comparison {\n name: 'TypeError',\n" + |
876 | | - " message: 'Wrong value',\n- code: 404\n" + |
877 | | - "+ code: '404',\n+ foo: undefined\n }" |
| 878 | + ' Comparison {\n' + |
| 879 | + '- code: 404,\n' + |
| 880 | + "+ code: '404',\n" + |
| 881 | + '+ foo: undefined,\n' + |
| 882 | + " message: 'Wrong value',\n" + |
| 883 | + " name: 'TypeError'\n" + |
| 884 | + ' }' |
878 | 885 | } |
879 | 886 | ); |
880 | 887 |
|
@@ -904,8 +911,11 @@ common.expectsError( |
904 | 911 | name: 'AssertionError [ERR_ASSERTION]', |
905 | 912 | code: 'ERR_ASSERTION', |
906 | 913 | message: `${start}\n${actExp}\n\n` + |
907 | | - " Comparison {\n- name: 'TypeError',\n+ name: 'Error'," + |
908 | | - "\n message: 'e'\n }" |
| 914 | + ' Comparison {\n' + |
| 915 | + " message: 'e',\n" + |
| 916 | + "- name: 'TypeError'\n" + |
| 917 | + "+ name: 'Error'\n" + |
| 918 | + ' }' |
909 | 919 | } |
910 | 920 | ); |
911 | 921 | assert.throws( |
@@ -915,8 +925,11 @@ common.expectsError( |
915 | 925 | code: 'ERR_ASSERTION', |
916 | 926 | generatedMessage: true, |
917 | 927 | message: `${start}\n${actExp}\n\n` + |
918 | | - " Comparison {\n name: 'Error',\n- message: 'foo'" + |
919 | | - "\n+ message: ''\n }" |
| 928 | + ' Comparison {\n' + |
| 929 | + "- message: 'foo',\n" + |
| 930 | + "+ message: '',\n" + |
| 931 | + " name: 'Error'\n" + |
| 932 | + ' }' |
920 | 933 | } |
921 | 934 | ); |
922 | 935 |
|
|