Updating tests
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adsooi 2024-09-30 01:35:24 +02:00
parent e2841c0129
commit 1c7e9d627d
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
4 changed files with 11 additions and 5 deletions

View file

@ -20,6 +20,6 @@
"recursive": true,
"require": [
"esm",
"./tests/js/hooks.mjs"
"./test/hooks.mjs"
]
}
}

View file

@ -19,7 +19,7 @@ import * as fs from "./mock/fs.mjs";
import Qt from "./mock/qt.mjs";
import { MockHelper } from "./mock/helper.mjs";
import { MockLatex } from "./mock/latex.mjs";
import Modules from "../../LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/module/index.mjs";
import Modules from "../src/module/index.mjs";
function setup() {
globalThis.Helper = new MockHelper()
@ -27,4 +27,4 @@ function setup() {
Modules.Latex.initialize({ latex: Latex, helper: Helper })
}
setup()
setup()

View file

@ -19,7 +19,7 @@
import { describe, it } from "mocha"
import { expect } from "chai"
import { Domain, parseDomainSimple } from "../../../LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/math/domain.mjs"
import { Domain, parseDomainSimple } from "../../src/math/domain.mjs"
describe("math.domain", function() {
describe("#parseDomainSimple", function() {

View file

@ -6,6 +6,12 @@ bash scripts/build.sh
# Run python tests
cp -r runtime-pyside6/tests build/runtime-pyside6
cp -r ci CHANGELOG.md build/runtime-pyside6
cd build/runtime-pyside6 || exit 1
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
cd ../../
# Run js tests
cd common
npm test