Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 committed Dec 13, 2024
1 parent 829f657 commit 9737aae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/ecs/events/system.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ describe('Events System', () => {

it('should run default onHoverEnter', async () => {
const entity = engine.addEntity()
const PointerEvents = components.PointerEvents(engine)
let counter = 0
EventsSystem.onPointerHoverEnter(
{
Expand All @@ -275,7 +274,6 @@ describe('Events System', () => {
fakePointer(entity, PointerEventType.PET_HOVER_ENTER)
await engine.update(1)
expect(counter).toBe(1)
expect(PointerEvents.getOrNull(entity)).toBe(null)
})

it('should remove pointer hover enter', async () => {
Expand Down Expand Up @@ -304,7 +302,6 @@ describe('Events System', () => {

it('should run default onHoverLeave', async () => {
const entity = engine.addEntity()
const PointerEvents = components.PointerEvents(engine)
let counter = 0
EventsSystem.onPointerHoverLeave(
{
Expand All @@ -317,7 +314,6 @@ describe('Events System', () => {
fakePointer(entity, PointerEventType.PET_HOVER_LEAVE)
await engine.update(1)
expect(counter).toBe(1)
expect(PointerEvents.getOrNull(entity)).toBe(null)
})

it('should remove pointer hover leave', async () => {
Expand Down

0 comments on commit 9737aae

Please sign in to comment.