Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/publish_demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 8 additions & 2 deletions test/integration/advanced.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export const advanced: Record<string, () => unknown> = {
nested_list() {
return [[1, 2], [3, [4, 5]]];
return [
[1, 2],
[3, [4, 5]],
];
},
nested_dict() {
return { a: { b: { c: 1 } } };
Expand Down Expand Up @@ -68,7 +71,10 @@ export const advanced: Record<string, () => unknown> = {
return [42];
},
nested_tuple() {
return [[1, 2], [3, [4, 5]]];
return [
[1, 2],
[3, [4, 5]],
];
},
bool_values() {
return [true, false, true];
Expand Down
5 changes: 4 additions & 1 deletion test/integration/intergration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<unknown[][]>(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
Expand Down