2019-11-07 20:44:07 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
|
|
// test the tone.js build
|
2021-10-13 17:56:57 +00:00
|
|
|
const Tone = require("../../build/esm");
|
2018-08-29 17:54:55 +00:00
|
|
|
const assert = require("assert");
|
2018-08-30 03:08:40 +00:00
|
|
|
const semver = require("semver");
|
2019-11-07 20:44:07 +00:00
|
|
|
const { version } = require("../../package.json");
|
2018-08-29 17:54:55 +00:00
|
|
|
|
2019-11-07 20:44:07 +00:00
|
|
|
// test the version
|
2018-08-30 03:08:40 +00:00
|
|
|
const diff = semver.diff(Tone.version, version);
|
|
|
|
assert(diff === "patch" || diff === null, "wrong version listed");
|