Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Kusumgar committed Dec 18, 2024
1 parent 50d66a1 commit 4c7926d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/server/tests/controllers/appsController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ describe("appsController", () => {
status: mockStatus
} as any;

const mathjaxSrc = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js";

beforeEach(() => {
sessionIdFromFriendlyId = "123456";
});
Expand All @@ -85,7 +83,6 @@ describe("appsController", () => {
wodinVersion: "1.2.3",
loadSessionId: "1234",
shareNotFound: "",
mathjaxSrc,
defaultLanguage: "en",
enableI18n: false,
hotReload: undefined
Expand All @@ -108,7 +105,6 @@ describe("appsController", () => {
wodinVersion: "1.2.3",
loadSessionId: "",
shareNotFound: "",
mathjaxSrc,
defaultLanguage: "en",
enableI18n: false,
hotReload: undefined
Expand All @@ -135,7 +131,6 @@ describe("appsController", () => {
wodinVersion: "1.2.3",
loadSessionId: "123456",
shareNotFound: "",
mathjaxSrc,
defaultLanguage: "en",
enableI18n: false,
hotReload: undefined
Expand All @@ -160,7 +155,6 @@ describe("appsController", () => {
wodinVersion: "1.2.3",
loadSessionId: "",
shareNotFound: "tiny-mouse",
mathjaxSrc,
defaultLanguage: "en",
enableI18n: false,
hotReload: undefined
Expand Down
3 changes: 3 additions & 0 deletions app/static/src/wodin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ import help from "./directives/help";
import App from "./components/App.vue";
import { getStoreOptions } from "./mainUtils";
import { Store, StoreOptions } from "vuex";
import { mountScriptTags } from "./externalScriptSrc";

declare let appType: AppType;

mountScriptTags();

const { Basic, Fit, Stochastic } = AppType;
export const getComponent = (appType: AppType) => {
switch (appType) {
Expand Down

0 comments on commit 4c7926d

Please sign in to comment.