Skip to content

Commit 9935213

Browse files
committed
test: update
1 parent 80c7b1c commit 9935213

1 file changed

Lines changed: 24 additions & 24 deletions

File tree

test/cli/test/reporters/default.test.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -240,30 +240,30 @@ describe('default reporter', async () => {
240240

241241
expect(trimReporterOutput(stdout)).toMatchInlineSnapshot(`
242242
"✓ fixtures/reporters/test-for-title.test.ts (24 tests) [...]ms
243-
✓ test.for object : 0 = 'a', 2 = { te: 'st' } [...]ms
244-
✓ test.for object : 0 = 'b', 2 = [ 'test' ] [...]ms
245-
✓ test.each object : 0 = 'a', 2 = { te: 'st' } [...]ms
246-
✓ test.each object : 0 = 'b', 2 = [ 'test' ] [...]ms
247-
✓ test.for array : 0 = 'a', 2 = { te: 'st' } [...]ms
248-
✓ test.for array : 0 = 'b', 2 = [ 'test' ] [...]ms
249-
✓ test.each array : 0 = 'a', 2 = { te: 'st' } [...]ms
250-
✓ test.each array : 0 = 'b', 2 = [ 'test' ] [...]ms
243+
✓ test.for object : 0 = a, 2 = { te: 'st' } [...]ms
244+
✓ test.for object : 0 = b, 2 = [ 'test' ] [...]ms
245+
✓ test.each object : 0 = a, 2 = { te: 'st' } [...]ms
246+
✓ test.each object : 0 = b, 2 = [ 'test' ] [...]ms
247+
✓ test.for array : 0 = a, 2 = { te: 'st' } [...]ms
248+
✓ test.for array : 0 = b, 2 = [ 'test' ] [...]ms
249+
✓ test.each array : 0 = a, 2 = { te: 'st' } [...]ms
250+
✓ test.each array : 0 = b, 2 = [ 'test' ] [...]ms
251251
✓ object : add(1, 1) -> 2 [...]ms
252252
✓ object : add(1, 2) -> 3 [...]ms
253253
✓ object : add(2, 1) -> 3 [...]ms
254254
✓ array : add(1, 1) -> 2 [...]ms
255255
✓ array : add(1, 2) -> 3 [...]ms
256256
✓ array : add(2, 1) -> 3 [...]ms
257-
✓ first array element is object: 0 = { k1: 'v1' }, 1 = { k2: 'v2' }, k1 = 'v1', k2 = undefined [...]ms
258-
✓ first array element is not object: 0 = 'foo', 1 = 'bar', k = $k [...]ms
259-
✓ not array: 0 = { k: 'v1' }, 1 = undefined, k = 'v1' [...]ms
260-
✓ not array: 0 = { k: 'v2' }, 1 = undefined, k = 'v2' [...]ms
257+
✓ first array element is object: 0 = { k1: 'v1' }, 1 = { k2: 'v2' }, k1 = v1, k2 = undefined [...]ms
258+
✓ first array element is not object: 0 = foo, 1 = bar, k = $k [...]ms
259+
✓ not array: 0 = { k: 'v1' }, 1 = undefined, k = v1 [...]ms
260+
✓ not array: 0 = { k: 'v2' }, 1 = undefined, k = v2 [...]ms
261261
✓ handles whole numbers: 343434 as $343,434.00 [...]ms
262262
✓ { a: '$b', b: 'yay' } [...]ms
263-
'%o' [...]ms
263+
%o [...]ms
264264
✓ { a: '%o' } [...]ms
265-
'%o' { a: '%o' } [...]ms
266-
✓ { a: '%o' } '%o' [...]ms"
265+
%o { a: '%o' } [...]ms
266+
✓ { a: '%o' } %o [...]ms"
267267
`)
268268
})
269269

@@ -282,9 +282,9 @@ describe('default reporter', async () => {
282282
"$ (object: 3) { one: 1, two: 2, three: 3 }": "passed",
283283
"$ (object: 4) { one: 1, two: 2, three: 3, four: 4 }": "passed",
284284
"$ (object: 5) { one: 1, two: 2, three: 3, …(2) }": "passed",
285-
"$ (string: 30) '012345678901234567890123456789'": "passed",
286-
"$ (string: 40) '01234567890123456789012345678901234567…'": "passed",
287-
"$ (string: 50) '01234567890123456789012345678901234567…'": "passed",
285+
"$ (string: 30) 012345678901234567890123456789": "passed",
286+
"$ (string: 40) 0123456789012345678901234567890123456789": "passed",
287+
"$ (string: 50) 012345678901234567890123456789012345678…": "passed",
288288
"% (array: 3) [ 'one', 'two', 'three' ]": "passed",
289289
"% (array: 4) [ 'one', 'two', 'three', 'four' ]": "passed",
290290
"% (array: 5) [ 'one', 'two', 'three', 'four', …(1) ]": "passed",
@@ -313,9 +313,9 @@ describe('default reporter', async () => {
313313
"$ (object: 3) { one: 1, …(2) }": "passed",
314314
"$ (object: 4) { one: 1, …(3) }": "passed",
315315
"$ (object: 5) { one: 1, …(4) }": "passed",
316-
"$ (string: 30) '012345678901234567…'": "passed",
317-
"$ (string: 40) '012345678901234567…'": "passed",
318-
"$ (string: 50) '012345678901234567…'": "passed",
316+
"$ (string: 30) 0123456789012345678…": "passed",
317+
"$ (string: 40) 0123456789012345678…": "passed",
318+
"$ (string: 50) 0123456789012345678…": "passed",
319319
"% (array: 3) [ 'one', …(2) ]": "passed",
320320
"% (array: 4) [ 'one', …(3) ]": "passed",
321321
"% (array: 5) [ 'one', …(4) ]": "passed",
@@ -344,9 +344,9 @@ describe('default reporter', async () => {
344344
"$ (object: 3) { one: 1, two: 2, three: 3 }": "passed",
345345
"$ (object: 4) { one: 1, two: 2, three: 3, four: 4 }": "passed",
346346
"$ (object: 5) { one: 1, two: 2, three: 3, four: 4, five: 5 }": "passed",
347-
"$ (string: 30) '012345678901234567890123456789'": "passed",
348-
"$ (string: 40) '0123456789012345678901234567890123456789'": "passed",
349-
"$ (string: 50) '01234567890123456789012345678901234567890123456789'": "passed",
347+
"$ (string: 30) 01234567890123456789012345678…": "passed",
348+
"$ (string: 40) 012345678901234567890123456789012345678…": "passed",
349+
"$ (string: 50) 0123456789012345678901234567890123456789012345678…": "passed",
350350
"% (array: 3) [ 'one', 'two', 'three' ]": "passed",
351351
"% (array: 4) [ 'one', 'two', 'three', 'four' ]": "passed",
352352
"% (array: 5) [ 'one', 'two', 'three', 'four', 'five' ]": "passed",

0 commit comments

Comments
 (0)