Tone.js/test/scripts/node_test.cjs
2021-10-13 13:56:57 -04:00

10 lines
379 B
JavaScript

/* eslint-disable @typescript-eslint/no-var-requires */
// test the tone.js build
const Tone = require("../../build/esm");
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");