Skip to content

Commit 0652aa6

Browse files
committed
Final duplicate elimination - refactor isAnimating test with helper
1 parent 3aebfd1 commit 0652aa6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/amazonq/test/unit/lsp/chat/diffAnimation/diffAnimationController.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,15 +334,9 @@ describe('DiffAnimationController', function () {
334334
})
335335

336336
it('should return false after stopping animation', async function () {
337-
const filePath = '/test/file.js'
338-
const originalContent = 'original'
339-
const newContent = 'new'
340-
341-
setupStandardMocks(originalContent)
342-
await controller.startDiffAnimation(filePath, originalContent, newContent, false)
343-
controller.stopDiffAnimation(filePath)
337+
await setupAnimationAndStop('/test/file.js', 'original', 'new')
344338

345-
const result = controller.isAnimating(filePath)
339+
const result = controller.isAnimating('/test/file.js')
346340
assert.strictEqual(result, false)
347341
})
348342
})

0 commit comments

Comments
 (0)