mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-03 23:37:53 +01:00
test: type the platform receipt fixture list (typecheck:test ratchet)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
889b99bbda
commit
47962b3dc7
1 file changed
+1
-1
@@ -53,7 +53,7 @@ describe('C6 receipt: review_depth platform, honest and bound to the exact head
|
||||
const off = repo({}, { 'docs/howto.md': 'x\n' });
|
||||
const dOff = receiptReviewAtHead(off.dir, 'main', BIN, off.head).depth;
|
||||
expect(withGh(off.head, () => platformReceiptDepth(off.dir, 'main', dOff, off.head, '99'))).toMatchObject({ ok: false, message: expect.stringContaining('review.platform on') });
|
||||
for (const files of [{ 'src/b.ts': 'export const b = 2;\n' }, { 'docs/results/summary.md': 'Ran it.\n' }]) {
|
||||
for (const files of [{ 'src/b.ts': 'export const b = 2;\n' }, { 'docs/results/summary.md': 'Ran it.\n' }] as Record<string, string>[]) {
|
||||
const { dir, head } = repo({ review: { platform: 'on' } }, files);
|
||||
const d = receiptReviewAtHead(dir, 'main', BIN, head).depth;
|
||||
expect(withGh(head, () => platformReceiptDepth(dir, 'main', d, head, '99')).ok).toBe(false);
|
||||
|
||||
Reference in new issue
Block a user