Tone.js/test/scripts/node_test.js

11 lines
370 B
JavaScript
Raw Normal View History

2019-11-07 20:44:07 +00:00
/* eslint-disable @typescript-eslint/no-var-requires */
// test the tone.js build
const Tone = require("../../");
const assert = require("assert");
const semver = require("semver");
2019-11-07 20:44:07 +00:00
const { version } = require("../../package.json");
2019-11-07 20:44:07 +00:00
// test the version
const diff = semver.diff(Tone.version, version);
assert(diff === "patch" || diff === null, "wrong version listed");