test: align renderer mock calls in missile-skills test

This commit is contained in:
troytt 2026-09-23 05:49:34 +00:00
parent c814376e8a
commit e3ab3d8552
1 changed files with 2 additions and 2 deletions

View File

@ -989,7 +989,7 @@ describe('Diablo II 1.13c Missile Skills Suite', () => {
const renderer = new SpriteRenderer(canvas)
// Start frame
renderer.begin([0, 0], 1)
renderer.begin({ x: 0, y: 0, zoom: 1 }, [0, 0, 0])
// gl.blendFunc was set to (SRC_ALPHA, ONE_MINUS_SRC_ALPHA) on initialize
expect(blendFuncCalls.length).toBeGreaterThan(0)
expect(blendFuncCalls[0]).toEqual([gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA])
@ -1022,7 +1022,7 @@ describe('Diablo II 1.13c Missile Skills Suite', () => {
renderer.drawSolid(0, 0, 10, 10, [1, 0, 0, 1])
expect(blendFuncCalls[blendFuncCalls.length - 1]).toEqual([gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA])
renderer.end()
renderer.flush()
})
})
})