Tone.js/test/scripts/node_test.js
2019-11-16 17:45:22 -05:00

10 lines
370 B
JavaScript

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