Skip to content

Commit 8f31d0e

Browse files
committed
chore: cleanup
1 parent 907927e commit 8f31d0e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/core/test/diff.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,15 +324,15 @@ test('truncate large diff', () => {
324324
expect(diff.trim()).toMatch(/\.\.\.$/)
325325
})
326326

327-
function generateCycle(n: number) {
328-
const nodes = Array.from({ length: n }, (_, i) => ({ i, next: null as any }))
329-
nodes.forEach((node, i) => {
330-
node.next = nodes[(i + 1) % n]
331-
})
332-
return nodes
333-
}
334-
335327
test('diff default maxDepth', () => {
328+
function generateCycle(n: number) {
329+
const nodes = Array.from({ length: n }, (_, i) => ({ i, next: null as any }))
330+
nodes.forEach((node, i) => {
331+
node.next = nodes[(i + 1) % n]
332+
})
333+
return nodes
334+
}
335+
336336
// diff only appears in a deeper depth than maxDepth
337337
const xs = generateCycle(20)
338338
const ys = generateCycle(20)

0 commit comments

Comments
 (0)