UNPKG

mathjslab

Version:

MathJSLab - An interpreter with language syntax like MATLAB®/Octave, ISBN 978-65-00-82338-7.

13 lines (10 loc) 525 B
const path = require('node:path'); const { Evaluator: EvaluatorDefinition } = require('../../src/Evaluator'); const __filenameMatch = __filename.match(new RegExp(`.*\\${path.sep}([^\\${path.sep}]+)\\.spec\\.([cm]?[jt]s)\$`)); const bundleName = __filenameMatch[1]; const testExtension = __filenameMatch[2]; describe(`${bundleName} bundle test (.${testExtension} test file).`, () => { it('Evaluator (definition) should be defined.', () => { expect(EvaluatorDefinition).toBeDefined(); }, 10); });