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