Skip to content

Commit

Permalink
Fix options.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Oct 7, 2023
1 parent 41fa458 commit ab773f1
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions packages/mountable/src/options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ describe("canonicalizeMountOptions()", () => {
},
requirements: [],
archives: [],
onProgress: expect.any(Function),
onLoad: expect.any(Function),
onError: expect.any(Function),
...makeToastKernelCallbacks(),
});
});

Expand Down Expand Up @@ -98,9 +96,7 @@ describe("canonicalizeMountOptions()", () => {
},
},
archives: [],
onProgress: expect.any(Function),
onLoad: expect.any(Function),
onError: expect.any(Function),
...makeToastKernelCallbacks(),
});
});

Expand Down Expand Up @@ -146,9 +142,7 @@ describe("canonicalizeMountOptions()", () => {
options: {},
},
],
onProgress: expect.any(Function),
onLoad: expect.any(Function),
onError: expect.any(Function),
...makeToastKernelCallbacks(),
});
});

Expand All @@ -169,9 +163,7 @@ describe("canonicalizeMountOptions()", () => {
},
},
archives: [],
onProgress: expect.any(Function),
onLoad: expect.any(Function),
onError: expect.any(Function),
...makeToastKernelCallbacks(),
});
});

Expand All @@ -185,13 +177,11 @@ describe("canonicalizeMountOptions()", () => {
entrypoint: "streamlit_app.py",
files: {},
archives: [],
onProgress: expect.any(Function),
onLoad: expect.any(Function),
onError: expect.any(Function),
...makeToastKernelCallbacks(),
});
});

it("wraps the `onError` option and also shows the original toast callback if `true` returned", () => {
it("wraps the `onError` option and also delegates to the original toast callback if `true` returned", () => {
const toastCallbacks = makeToastKernelCallbacks();

const error = new Error("foo");
Expand Down

0 comments on commit ab773f1

Please sign in to comment.