Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-22 15:22:41 -05:00
1 parent 8c82cbde79
commit c95d2cec18
1 file changed
+6 -2
@@ -244,8 +244,8 @@ export const getApplicationBuilder = () => {
return {
show: () => {},
close: () => {},
loadFile: async () => {},
loadUrl: async () => {
loadFile: async (filePath) => {
if (filePath === "/some-static-directory/build/some-product-name.html") {
for (const callback of beforeWindowStartCallbacks) {
await callback(windowDi);
}
@@ -267,6 +267,10 @@ export const getApplicationBuilder = () => {
<environment.RootComponent />
</Router>,
);
}
},
loadUrl: async () => {
throw new Error("Loading from URL is no longer supported");
},
send: (arg) => {