1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { testMutateSemantics } from "https://esm.town/v/stevekrouse/testMutateSemantics";
export const unauthenticatedCanMutateViaObjectSneak = (api) =>
testMutateSemantics({
stateName: "@stevekrouse.testState",
api,
expected: (old, next) => next.n2 === next.n,
mutator: (now) => `(() => {
let d = {n: ${now}};
@stevekrouse.mutateTestState(d);
d.n2 = ${now}
})()`,
authenticated: false,
});