Fix tests

This commit is contained in:
Steve Ruiz 2021-09-12 00:41:50 +01:00
parent 915a7ba194
commit 8bcb2e1154
2 changed files with 2 additions and 3 deletions

View file

@ -5,7 +5,6 @@ import { CenterHandle } from './center-handle'
import { RotateHandle } from './rotate-handle'
import { CornerHandle } from './corner-handle'
import { EdgeHandle } from './edge-handle'
import { usePosition } from '+hooks'
import { Container } from '+components/container'
import { SVGContainer } from '+components/svg-container'

View file

@ -100,7 +100,7 @@ describe('Arrow session', () => {
.startHandleSession([200, 200], 'start')
.updateHandleSession([91, 9])
expect(tlstate.bindings[0].point).toStrictEqual([0.67839, 0.125])
expect(tlstate.bindings[0].point).toStrictEqual([0.68, 0.13])
tlstate.updateHandleSession([91, 9], false, false, true)
})
@ -112,7 +112,7 @@ describe('Arrow session', () => {
.startHandleSession([200, 200], 'start')
.updateHandleSession([91, 9])
expect(tlstate.bindings[0].point).toStrictEqual([0.67839, 0.125])
expect(tlstate.bindings[0].point).toStrictEqual([0.68, 0.13])
tlstate.updateHandleSession([91, 9], false, false, true)