1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-22 15:22:41 -05:00
parent 8c82cbde79
commit c95d2cec18

View File

@ -244,8 +244,8 @@ export const getApplicationBuilder = () => {
return { return {
show: () => {}, show: () => {},
close: () => {}, close: () => {},
loadFile: async () => {}, loadFile: async (filePath) => {
loadUrl: async () => { if (filePath === "/some-static-directory/build/some-product-name.html") {
for (const callback of beforeWindowStartCallbacks) { for (const callback of beforeWindowStartCallbacks) {
await callback(windowDi); await callback(windowDi);
} }
@ -267,6 +267,10 @@ export const getApplicationBuilder = () => {
<environment.RootComponent /> <environment.RootComponent />
</Router>, </Router>,
); );
}
},
loadUrl: async () => {
throw new Error("Loading from URL is no longer supported");
}, },
send: (arg) => { send: (arg) => {