tools: the details group, the leak scenario's props and three fault classes (#22)
tools/details.test.mjs is the slice's WS acceptance: the five intents and their codes, a grow push clear of a wall, a squeeze in a corridor too narrow for the grown token, stuck from a wall and from a GM placement cleared by a removal and by a shrink, the GM source of a status, the caps and who reads which bucket, and a restart that brings size, props and statuses back. Waits use a cursor taken before the intent, so a repeated state cannot be matched by an older frame. The leak scenario gains a token in view with props in all three buckets, a GM-sourced status, a resize, a wall over it and the clears; leakcheck refuses the `gm` bucket (GM_PROP), the `owner` bucket on a non-controller (OWNER_PROP) and any `source` on a player status entry (STATUS_SOURCE), so `fault.test.mjs` now asserts all twelve classes. The schema-version fixtures in smoke/persistence move to 6, and mutation.sh gains am-au plus the renames.
This commit is contained in:
@@ -97,9 +97,9 @@ test('an unknown type is refused, unknown fields are ignored, and every intent g
|
||||
assert.equal((await gm.ws.request({ t: 'token.teleport', id: 'x' })).code, 'unknown-type')
|
||||
assert.equal((await gm.ws.request({ t: '' })).code, 'unknown-type')
|
||||
assert.equal((await gm.ws.request({ t: 'TOKEN.MOVE', id: 'x' })).code, 'unknown-type')
|
||||
// a catalogue intent whose slice has not landed still answers exactly once (slices 6-8)
|
||||
assert.equal((await gm.ws.request({ t: 'status.set', id: 'x', status: 'stuck' })).code,
|
||||
'unknown-type')
|
||||
// a catalogue intent whose slice has not landed still answers exactly once (slice 8)
|
||||
assert.equal((await gm.ws.request({ t: 'name.reveal', subject: 'token', id: 'x',
|
||||
player: 2 })).code, 'unknown-type')
|
||||
assert.equal((await gm.ws.request({ t: 'scene.set', scene: 1 })).code, 'unknown-type')
|
||||
assert.equal((await gm.ws.request({ t: 'character.create', descriptive_name: 'x',
|
||||
actual_name: 'X' })).code, 'unknown-type')
|
||||
|
||||
Reference in New Issue
Block a user