forked from jestjs/jest
/
domDiffing.test.ts.snap
51 lines (37 loc) · 1.3 KB
/
domDiffing.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should work without error 1`] = `
"FAIL __tests__/dom.test.js
✕ use toBe compare two div (<<REPLACED>>)
✕ compare span and div (<<REPLACED>>)
● use toBe compare two div
expect(received).toBe(expected) // Object.is equality
If it should pass with deep equality, replace \\"toBe\\" with \\"toStrictEqual\\"
Expected: <div />
Received: serializes to the same string
12 | const div1 = document.createElement('div');
13 | const div2 = document.createElement('div');
> 14 | expect(div1).toBe(div2);
| ^
15 | });
16 |
17 | test('compare span and div', () => {
at Object.toBe (__tests__/dom.test.js:14:16)
● compare span and div
expect(received).toBe(expected) // Object.is equality
- Expected - 1
+ Received + 1
- <span />
+ <div />
16 |
17 | test('compare span and div', () => {
> 18 | expect(document.createElement('div')).toBe(document.createElement('span'));
| ^
19 | });
20 |
at Object.toBe (__tests__/dom.test.js:18:41)
Test Suites: 1 failed, 1 total
Tests: 2 failed, 2 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites."
`;