mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 20:44:40 +00:00
updated test
This commit is contained in:
@@ -419,8 +419,8 @@ describe("RadialMenuElements", () => {
|
||||
atomBombElement!.action(mockParams);
|
||||
|
||||
expect(mockBuildMenu.sendBuildOrUpgrade).not.toHaveBeenCalled();
|
||||
expect(mockParams.uiState.ghostStructure).toBe(UnitType.AtomBomb);
|
||||
expect(mockParams.uiState.lockedGhostTile).toBe(mockTile);
|
||||
expect(mockParams.uiState!.ghostStructure).toBe(UnitType.AtomBomb);
|
||||
expect(mockParams.uiState!.lockedGhostTile).toBe(mockTile);
|
||||
expect(mockParams.eventBus.emit).toHaveBeenCalledTimes(1);
|
||||
const emittedEvent = (mockParams.eventBus.emit as Mock).mock
|
||||
.calls[0][0];
|
||||
|
||||
Reference in New Issue
Block a user