From 813df8f855a3c516af5c03e4285285ba976c92b2 Mon Sep 17 00:00:00 2001 From: ewfian Date: Mon, 9 Mar 2026 21:19:48 +0800 Subject: [PATCH] fix prettier and upgrade actions versions --- .github/workflows/publish_demo.yaml | 8 ++++---- test/integration/advanced.ts | 10 ++++++++-- test/integration/intergration.test.ts | 5 ++++- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish_demo.yaml b/.github/workflows/publish_demo.yaml index 3cae010..9dcbfc2 100644 --- a/.github/workflows/publish_demo.yaml +++ b/.github/workflows/publish_demo.yaml @@ -29,13 +29,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 - name: Upload artifact - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v4 with: path: 'examples' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 diff --git a/test/integration/advanced.ts b/test/integration/advanced.ts index 4cf00f1..51a0b83 100644 --- a/test/integration/advanced.ts +++ b/test/integration/advanced.ts @@ -1,6 +1,9 @@ export const advanced: Record unknown> = { nested_list() { - return [[1, 2], [3, [4, 5]]]; + return [ + [1, 2], + [3, [4, 5]], + ]; }, nested_dict() { return { a: { b: { c: 1 } } }; @@ -68,7 +71,10 @@ export const advanced: Record unknown> = { return [42]; }, nested_tuple() { - return [[1, 2], [3, [4, 5]]]; + return [ + [1, 2], + [3, [4, 5]], + ]; }, bool_values() { return [true, false, true]; diff --git a/test/integration/intergration.test.ts b/test/integration/intergration.test.ts index 2e2111c..1e39335 100644 --- a/test/integration/intergration.test.ts +++ b/test/integration/intergration.test.ts @@ -304,7 +304,10 @@ describe('advanced special cases', () => { it.each(PROTOCOLS)('shared_ref with protocol %s', async (protocol) => { const data = await caller('advanced', 'shared_ref', protocol); const obj = new Parser().parse(data); - expect(obj).toStrictEqual([[1, 2, 3], [1, 2, 3]]); + expect(obj).toStrictEqual([ + [1, 2, 3], + [1, 2, 3], + ]); // Verify both elements reference the same object (memo) if (parseInt(protocol) >= 2) { // Protocol 2+ uses MEMOIZE/BINPUT for shared refs