Adding new test for Settings Module
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
974baa6cc2
commit
345458f453
8 changed files with 169 additions and 26 deletions
|
@ -15,14 +15,20 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
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 * 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 { use } from "chai"
|
||||
import spies from "chai-spies"
|
||||
|
||||
function setup() {
|
||||
const { spy } = use(spies)
|
||||
|
||||
globalThis.Helper = new MockHelper()
|
||||
globalThis.Latex = new MockLatex()
|
||||
globalThis.chaiPlugins = { spy }
|
||||
}
|
||||
|
||||
setup()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue