| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent dd60cd6 commit 2d0242a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -659,16 +659,22 @@ assertDeepAndStrictEqual(-0, -0); | |||
| 659 | 659 | ||
| 660 | 660 | assert.deepEqual(new Date(2000, 3, 14), new Date(2000, 3, 14)); | |
| 661 | 661 | ||
| 662 | - assert.throws(() => assert.deepEqual(new Date(), new Date(2000, 3, 14)), | ||
| 662 | + assert.throws(() => { assert.deepEqual(new Date(), new Date(2000, 3, 14)); }, | ||
| 663 | 663 | AssertionError, | |
| 664 | 664 | 'deepEqual(new Date(), new Date(2000, 3, 14))'); | |
| 665 | 665 | ||
| 666 | 666 | assert.throws( | |
| 667 | - () => assert.notDeepEqual(new Date(2000, 3, 14), new Date(2000, 3, 14)), | ||
| 667 | + () => { assert.notDeepEqual(new Date(2000, 3, 14), new Date(2000, 3, 14)); }, | ||
| 668 | 668 | AssertionError, | |
| 669 | 669 | 'notDeepEqual(new Date(2000, 3, 14), new Date(2000, 3, 14))' | |
| 670 | 670 | ); | |
| 671 | 671 | ||
| 672 | + assert.throws( | ||
| 673 | + () => { assert.notDeepEqual('a'.repeat(1024), 'a'.repeat(1024)); }, | ||
| 674 | + AssertionError, | ||
| 675 | + 'notDeepEqual("a".repeat(1024), "a".repeat(1024))' | ||
| 676 | + ); | ||
| 677 | + | ||
| 672 | 678 | assert.notDeepEqual(new Date(), new Date(2000, 3, 14)); | |
| 673 | 679 | ||
| 674 | 680 | assertDeepAndStrictEqual(/a/, /a/); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments