Skip to content

Commit ec00732

Browse files
committed
Fix whitespace
1 parent 7010765 commit ec00732

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

test/core/format.test.ts

+31-31
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ describe('formatInline', () => {
3535
checkInline(
3636
['foo', 123],
3737
`
38-
[
39-
"foo",
40-
123,
41-
]`,
38+
[
39+
"foo",
40+
123,
41+
]`,
4242
);
4343
});
4444

@@ -51,65 +51,65 @@ describe('formatInline', () => {
5151
checkInline(
5252
annotate(123, 'a number'),
5353
`
54-
123
55-
^^^ a number
56-
`,
54+
123
55+
^^^ a number
56+
`,
5757
);
5858
checkInline(
5959
annotate(true, 'not false'),
6060
`
61-
true
62-
^^^^ not false
63-
`,
61+
true
62+
^^^^ not false
63+
`,
6464
);
6565
checkInline(
6666
annotate('foo', 'This is a foo'),
6767
`
68-
"foo"
69-
^^^^^ This is a foo
70-
`,
68+
"foo"
69+
^^^^^ This is a foo
70+
`,
7171
);
7272
checkInline(
7373
annotate(new Date(Date.UTC(2017, 11, 25)), 'Merry X-mas!'),
7474
`
75-
new Date('2017-12-25T00:00:00.000Z')
76-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Merry X-mas!
77-
`,
75+
new Date('2017-12-25T00:00:00.000Z')
76+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Merry X-mas!
77+
`,
7878
);
7979
checkInline(
8080
annotate(new Date('not a date'), 'Nope'),
8181
`
82-
(Invalid Date)
83-
^^^^^^^^^^^^^^ Nope
84-
`,
82+
(Invalid Date)
83+
^^^^^^^^^^^^^^ Nope
84+
`,
8585
);
8686
checkInline(
8787
annotate(new DefinitelyNotADate(), 'Nope'),
8888
`
89-
(unserializable)
90-
^^^^^^^^^^^^^^^^ Nope
91-
`,
89+
(unserializable)
90+
^^^^^^^^^^^^^^^^ Nope
91+
`,
9292
);
9393
checkInline(
9494
annotate([], 'must not be empty'),
9595
`
96-
[]
97-
^^ must not be empty
98-
`,
96+
[]
97+
^^ must not be empty
98+
`,
9999
);
100100
checkInline(
101101
annotate({}, 'must not be empty'),
102102
`
103-
{}
104-
^^ must not be empty
105-
`,
103+
{}
104+
^^ must not be empty
105+
`,
106106
);
107107
checkInline(
108108
annotate(() => {}, 'xxx'),
109109
`
110-
<function>
111-
^^^^^^^^^^ xxx
112-
`,
110+
<function>
111+
^^^^^^^^^^ xxx
112+
`,
113113
);
114114
});
115115

0 commit comments

Comments
 (0)