We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40ef2b commit 4419e9eCopy full SHA for 4419e9e
test/index.spec.js
@@ -41,13 +41,12 @@ expect.addAssertion(
41
'<array> to produce a diff of <string>',
42
(expect, subject, value) => {
43
expect.errorMode = 'bubble';
44
- subject = subject.map(
45
- item =>
46
- typeof item === 'string'
47
- ? new jsdom.JSDOM(
48
- `<!DOCTYPE html><html><head></head><body>${item}</body></html>`
49
- ).window.document.body.firstChild
50
- : item
+ subject = subject.map(item =>
+ typeof item === 'string'
+ ? new jsdom.JSDOM(
+ `<!DOCTYPE html><html><head></head><body>${item}</body></html>`
+ ).window.document.body.firstChild
+ : item
51
);
52
expect(
53
expect.diff(subject[0], subject[1]).diff.toString(),
0 commit comments