refactor: fix command parsing
This commit is contained in:
@@ -93,7 +93,7 @@ describe('Rule System', () => {
|
||||
const ctx = game.dispatchCommand('attack goblin --power 5');
|
||||
|
||||
expect(ctx!.state).toBe('done');
|
||||
expect(ctx!.resolution).toEqual({ target: 'goblin', power: '5' });
|
||||
expect(ctx!.resolution).toEqual({ target: 'goblin', power: 5 });
|
||||
});
|
||||
|
||||
it('should complete immediately if generator does not yield', () => {
|
||||
|
||||
Reference in New Issue
Block a user