Skip to content

Commit 0bb02b2

Browse files
authored
fix prettier and upgrade actions versions (#11)
1 parent 042be69 commit 0bb02b2

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/publish_demo.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
runs-on: ubuntu-latest
3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v3
32+
uses: actions/checkout@v4
3333
- name: Setup Pages
34-
uses: actions/configure-pages@v3
34+
uses: actions/configure-pages@v5
3535
- name: Upload artifact
36-
uses: actions/upload-pages-artifact@v1
36+
uses: actions/upload-pages-artifact@v4
3737
with:
3838
path: 'examples'
3939
- name: Deploy to GitHub Pages
4040
id: deployment
41-
uses: actions/deploy-pages@v2
41+
uses: actions/deploy-pages@v4

test/integration/advanced.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
export const advanced: Record<string, () => unknown> = {
22
nested_list() {
3-
return [[1, 2], [3, [4, 5]]];
3+
return [
4+
[1, 2],
5+
[3, [4, 5]],
6+
];
47
},
58
nested_dict() {
69
return { a: { b: { c: 1 } } };
@@ -68,7 +71,10 @@ export const advanced: Record<string, () => unknown> = {
6871
return [42];
6972
},
7073
nested_tuple() {
71-
return [[1, 2], [3, [4, 5]]];
74+
return [
75+
[1, 2],
76+
[3, [4, 5]],
77+
];
7278
},
7379
bool_values() {
7480
return [true, false, true];

test/integration/intergration.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ describe('advanced special cases', () => {
304304
it.each(PROTOCOLS)('shared_ref with protocol %s', async (protocol) => {
305305
const data = await caller('advanced', 'shared_ref', protocol);
306306
const obj = new Parser().parse<unknown[][]>(data);
307-
expect(obj).toStrictEqual([[1, 2, 3], [1, 2, 3]]);
307+
expect(obj).toStrictEqual([
308+
[1, 2, 3],
309+
[1, 2, 3],
310+
]);
308311
// Verify both elements reference the same object (memo)
309312
if (parseInt(protocol) >= 2) {
310313
// Protocol 2+ uses MEMOIZE/BINPUT for shared refs

0 commit comments

Comments
 (0)