Skip to content

Commit

Permalink
Uncomment test in Program
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelChanZhiYang committed Apr 15, 2024
1 parent 53869e0 commit 5f4930f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ describe('Program', () => {
expect(() => program.fixedUpdate()).toThrow('Error in program execution. Please check your code and try again.');
});

// it('should check callbacks on update', () => {
// program.start();
// const mockTimingInfo = { deltaTime: 1 / 60 } as any;
// program.update(mockTimingInfo);
it('should check callbacks on update', () => {
program.start();
const mockTimingInfo = { deltaTime: 1 / 60 } as any;
program.update(mockTimingInfo);

// expect(mockedCallbackHandler.prototype.checkCallbacks).toHaveBeenCalledWith(mockTimingInfo);
// });
expect(mockedCallbackHandler.prototype.checkCallbacks).toHaveBeenCalledWith(mockTimingInfo);
});
});

0 comments on commit 5f4930f

Please sign in to comment.