Skip to content

Commit 47dbfe2

Browse files
committed
style: apply oxfmt
1 parent f980082 commit 47dbfe2

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

scripts/layering/model.test.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -315,17 +315,11 @@ test('session-state writes are found by field, and non-daemon or undeclared name
315315
// a local that is not a declared SessionState field
316316
['src/daemon/session-observability/internal/session-audio.ts', 'session.somethingElse = 1;'],
317317
// reads and comparisons are not writes
318-
[
319-
'src/daemon/interaction/internal/find.ts',
320-
"if (session.refFrame === 'active') return;",
321-
],
318+
['src/daemon/interaction/internal/find.ts', "if (session.refFrame === 'active') return;"],
322319
// a write into a sub-object is not a write to the field itself
323320
['src/daemon/handlers/session-probe.ts', 'session.refFrame.inner = 1;'],
324321
// a different binding that happens to have a matching property
325-
[
326-
'src/daemon/session-lifecycle/internal/session-close.ts',
327-
"other.refFrame = 'expired';",
328-
],
322+
['src/daemon/session-lifecycle/internal/session-close.ts', "other.refFrame = 'expired';"],
329323
]),
330324
['refFrame', 'snapshotGeneration'],
331325
);
@@ -351,9 +345,7 @@ test('every assignment form is a write, including the ones a regex forgets', ()
351345
'session\n .refFrame = 1;',
352346
];
353347
for (const form of forms) {
354-
const writes = findSessionStateWrites(new Map([['src/daemon/probe.ts', form]]), [
355-
'refFrame',
356-
]);
348+
const writes = findSessionStateWrites(new Map([['src/daemon/probe.ts', form]]), ['refFrame']);
357349
assert.deepEqual(
358350
writes.map(({ field }) => field),
359351
['refFrame'],

0 commit comments

Comments
 (0)