mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-30 13:33:10 +00:00
10 lines
379 B
JavaScript
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");
|