We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c451bd commit 7e64818Copy full SHA for 7e64818
1 file changed
test/base-config-fonturl.js
@@ -0,0 +1,31 @@
1
+var tape = require('tape');
2
+var mjAPI = require("../lib/main.js");
3
+
4
+tape('basic configuration: check fontURL', function (t) {
5
+ t.plan(2);
6
7
+ var tex = 'a';
8
+ mjAPI.typeset({
9
+ math: tex,
10
+ format: "TeX",
11
+ css: true
12
+ }, function (result, data) {
13
+ t.ok(result.css.indexOf('https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/fonts/HTML-CSS') > -1, 'Default fontURL');
14
+ });
15
+ // reconfigure
16
17
+ math: ''
18
+ }, function(){
19
+ mjAPI.config({
20
+ fontURL: 'https://example.com'
21
22
+ mjAPI.start();
23
+ })
24
25
26
27
+ css: true,
28
29
+ t.ok(result.css.indexOf('https://example.com') > -1, 'Configuring fontURL');
30
31
+});
0 commit comments