mathjslab
Version:
MathJSLab - An interpreter with language syntax like MATLAB®/Octave, ISBN 978-65-00-82338-7.
13 lines (10 loc) • 484 B
text/typescript
import path from 'node:path';
import { CoreFunctions } from './CoreFunctions';
const __filenameMatch = __filename.match(new RegExp(`.*\\${path.sep}([^\\${path.sep}]+)\\.spec\\.([cm]?[jt]s)\$`))!;
const unitName = __filenameMatch[1];
const testExtension = __filenameMatch[2];
describe(`${unitName} unit test (.${testExtension} test file).`, () => {
it(`${unitName} and its methods should be defined.`, () => {
expect(CoreFunctions).toBeDefined();
});
});