Update to Angular 17

This commit is contained in:
2026-03-24 20:55:45 +01:00
parent 1aae926572
commit a0763b6d14
16 changed files with 1762 additions and 2536 deletions
+3 -3
View File
@@ -477,7 +477,7 @@ describe('ServerActions', () => {
it('throws on invalid action', () => {
stub(world, 'getClientByEntityId').returns({} as any);
expect(() => serverActions.playerAction(1, 999, undefined))
expect(() => serverActions.playerAction(1, 999 as PlayerAction, undefined))
.throw('Invalid player action (undefined) [999]');
});
});
@@ -628,7 +628,7 @@ describe('ServerActions', () => {
});
it('rejects on invalid action', async () => {
await expect(serverActions.otherAction(222, 123, 0)).rejectedWith('Invalid mod action (123)');
await expect(serverActions.otherAction(222, 123 as ModAction, 0)).rejectedWith('Invalid mod action (123)');
});
it('rejects on entityId not a number', async () => {
@@ -950,7 +950,7 @@ describe('ServerActions', () => {
setTile(client.map, 1, 2, TileType.Dirt);
const setTileStub = stub(world, 'setTile');
serverActions.changeTile(1, 2, 999);
serverActions.changeTile(1, 2, 999 as TileType);
assert.notCalled(setTileStub);
expect(getWriterBuffer(client.updateQueue)).eql(new Uint8Array([]));