Skip to content

Commit 35e2680

Browse files
committed
[test] base-errors-startup: fix reset/restart
As per review in #402 We also change the filename as order should no longer be important.
1 parent 20b5622 commit 35e2680

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/base-01-errors-startup.js test/base-errors-startup.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
var tape = require('tape');
22
var mjAPI = require('../lib/main.js');
33

4-
// NOTE this test must first (in tape) to test the startup phase (hence the filename contains "01")
5-
64
tape('Catch errors during startup phase', function(t) {
75
t.plan(1);
86
mjAPI.config({
97
extensions: 'blargh'
108
});
9+
mjAPI.start();
1110
mjAPI.typeset(
1211
{
1312
math: 'x',
@@ -21,8 +20,9 @@ tape('Catch errors during startup phase', function(t) {
2120
);
2221
// reset configuration
2322
mjAPI.config({
24-
extensions: 'tex2jax'
23+
extensions: ''
2524
});
25+
mjAPI.start();
2626
}
2727
);
2828
});

0 commit comments

Comments
 (0)