Skip to content

Commit

Permalink
test(renderer): improve existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggero-visintin committed Dec 5, 2023
1 parent 584326f commit a0034c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unit/renderer/Renderer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ describe('renderer/Renderer', () => {
[0, 0]
);

// TODO: implement execute interface in renderCommand with gfx as Dependency
// To abstract the logic of how A command is executed from the renderer
const spy = jest.spyOn(renderCommand, 'execute');

renderer.pushRenderCommand(renderCommand);
renderer.endFrame(ctx);

expect(spy).toHaveBeenCalled();
})

it('Should clear the command buffer', () => {
Expand Down

0 comments on commit a0034c8

Please sign in to comment.