-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from mathjax/develop
v1.2.0 release
- Loading branch information
Showing
5 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '5' | ||
- '6' | ||
- '7' | ||
- stable | ||
- '4' | ||
- '5' | ||
- '6' | ||
- '7' | ||
- stable | ||
sudo: false | ||
script: | ||
- npm install | ||
- npm test | ||
- npm install | ||
- npm test | ||
deploy: | ||
provider: npm | ||
email: manager@mathjax.org | ||
api_key: | ||
secure: Fd/yFRRrLDjleB7QnV/Juncg7dJP193IYOWZaJJFohSfPC3TylhJjUb2bD2fcBUbzM9bLPvhz+XJbWS2YXRGzCWABtyjpZTjO9oEkYBmEuNdVnD9b1j+BCWEEyXfBGF0/WBePRtn8XWQLTPbEJXP9Z2HKOUJJlq4cjTLZ7MHZLw= | ||
secure: aJ/ZDGLods2x/Iss0bNgZ3xNHR7K8kkjEZ9jMAjTNxRlgC1oTbmjnPVVwybznUoIf8e13vpEyLHVNCZFWiE1rHwsguJCa1FoANKjpw51o/B811DZ65Nvj0qFuSi9UrHUwuVcnVCp2Qn2XEschCgT9yVWmiOmstq3557qg2iUJ1o= | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var tape = require('tape'); | ||
var mjAPI = require("../lib/main.js"); | ||
|
||
tape('basic test: check typeset promise API', function (t) { | ||
t.plan(2); | ||
|
||
var tex = ''; | ||
mjAPI.start(); | ||
|
||
// promise resolved | ||
mjAPI.typeset({ | ||
math: tex, | ||
format: "TeX", | ||
mml: true | ||
}).then((result) => t.ok(result.mml, 'Typset promise resolved on success')); | ||
|
||
mjAPI.typeset({ | ||
math: tex, | ||
format: "MathML", | ||
mml: true | ||
}).catch((error) => t.ok(error, 'Typeset promise rejected on error')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var tape = require('tape'); | ||
var mjAPI = require("../lib/main.js"); | ||
mjAPI.config({undefinedCharError: true}); | ||
|
||
tape('basic test: check warnings', function (t) { | ||
t.plan(2); | ||
mjAPI.typeset({math:'\u5475', html:true}) | ||
.catch(errors => t.ok(errors, 'CommonHTML output reports error')); | ||
mjAPI.typeset({math:'\u5475', svg:true}) | ||
.catch(errors => t.ok(errors, 'SVG output reports error')); | ||
}); |