Skip to content

Commit 85b05d1

Browse files
committed
[test] add test for #309
1 parent 3eff897 commit 85b05d1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/userconfig-jax.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
var tape = require('tape');
2+
var mjAPI = require('../lib/main.js');
3+
var jsdom = require('jsdom').jsdom;
4+
5+
tape('User configuration with jax array', function (t) {
6+
t.plan(1);
7+
8+
mjAPI.config({
9+
MathJax: {
10+
jax: ["input/MathML", "output/SVG"]
11+
}
12+
});
13+
mjAPI.typeset({
14+
math: '<math><mn>1</mn></math>',
15+
format: 'MathML',
16+
svg: true
17+
}, function (data) {
18+
t.ok(!data.errors, 'No errors');
19+
});
20+
});

0 commit comments

Comments
 (0)