Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit cbd025d

Browse files
committed
test: fix explanation
1 parent a1924c1 commit cbd025d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hoverifier.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ describe('Hoverifier', () => {
8989

9090
const inputDiagram = 'a'
9191

92-
// This diagram is probably wrong. We shouldn't have to subtract 1 from the TOOLTIP_DISPLAY_DELAY.
93-
// The actual frames are 300 and 400 but the expected without the -1 is 300 and 401.
94-
// I'm either misunderstanding something about marble diagram syntax or there is a 1ms delay somewhere in
95-
// the code that I'm missing.
92+
// Subtract 1ms before "b" because "a" takes up 1ms.
9693
const outputDiagram = `${LOADER_DELAY}ms a ${TOOLTIP_DISPLAY_DELAY - 1}ms b`
9794

9895
const outputValues: {

0 commit comments

Comments
 (0)