Skip to content

Commit b952594

Browse files
authored
Merge pull request #395 from mathjax/update-tests
Suppress unwanted error output in tests
2 parents c5a50ce + 91af4a8 commit b952594

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

test/base-typeset-promise.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tape('basic test: check typeset promise API', function (t) {
55
t.plan(2);
66

77
var tex = '';
8+
mjAPI.config({displayErrors: false});
89
mjAPI.start();
910

1011
// promise resolved

test/base-warnings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ mjAPI.config({undefinedCharError: true});
44

55
tape('basic test: check warnings', function (t) {
66
t.plan(2);
7+
mjAPI.config({displayErrors: false});
78
mjAPI.typeset({math:'\u5475', html:true})
89
.catch(errors => t.ok(errors, 'CommonHTML output reports error'));
910
mjAPI.typeset({math:'\u5475', svg:true})

test/issue175.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var JSDOM = require('jsdom').JSDOM;
44

55
tape('color extension should be reset', function(t) {
66
t.plan(3);
7+
mjAPI.config({displayErrors: false});
78
mjAPI.start();
89
var tex = '\\colorbox{green}{x}';
910
var tex2 = '\\color{red}{x}x';

test/svg-full-width-chars.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ var mjAPI = require("../lib/main.js");
44
tape('the SVG output should renders full-width characters correctly', function(t) {
55
t.plan(1);
66

7+
mjAPI.config({displayErrors: false});
78
mjAPI.start();
8-
var tex = '\\text{拾零}^i';
9+
var tex = '\\text{\u62FE\u96F6}^i';
910

1011
mjAPI.typeset({
1112
math: tex,

0 commit comments

Comments
 (0)