mirror of
https://github.com/callstack/agent-device.git
synced 2026-09-14 20:06:34 +08:00
893ce4b866
* fix(ci): repair nightly XCTest and conformance lanes * fix(ci): harden nightly failure classification * fix(ci): stabilize macOS replay cleanup * fix(ci): close nightly review gaps * fix(ci): classify device claims as infrastructure
11 lines
459 B
JavaScript
11 lines
459 B
JavaScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
import { formatGeneratedJson } from './format-generated-json.mjs';
|
|
|
|
test('generated fixtures use the repository JSON format', () => {
|
|
const formatted = formatGeneratedJson({ matches: ['card'], selected: 'card' });
|
|
|
|
assert.equal(formatted, '{\n "matches": ["card"],\n "selected": "card"\n}\n');
|
|
assert.deepEqual(JSON.parse(formatted), { matches: ['card'], selected: 'card' });
|
|
});
|