refactor: renaming api

This commit is contained in:
2026-04-06 09:48:20 +08:00
parent 8c2c6dc94c
commit 2d5200bdb7
7 changed files with 42 additions and 42 deletions
+2 -2
View File
@@ -176,7 +176,7 @@ describe('TicTacToe - game flow', () => {
it('should have setup and turn commands registered', () => {
const { registry: reg } = createTestContext();
expect(reg.has('setup')).toBe(true);
expect(reg.has('start')).toBe(true);
expect(reg.has('turn')).toBe(true);
});
@@ -184,7 +184,7 @@ describe('TicTacToe - game flow', () => {
const { ctx } = createTestContext();
const promptPromise = waitForPrompt(ctx);
const runPromise = ctx.run('setup');
const runPromise = ctx.run('start');
const promptEvent = await promptPromise;
expect(promptEvent).not.toBeNull();