'use strict'; import { senses } from './senses.js'; const [ frozen, ...rest ] = senses; test("frozen sense", () => { const agent = { id: 0, x: 0, y: 0, flags: { frozen: true, }, }; const lattice = null; expect(frozen.read(lattice, agent)).toEqual([1]); agent.flags.frozen = false; expect(frozen.read(lattice, agent)).toEqual([0]); });