From 3fde7a3d617ba4d5f5b57305df9e5f8b01b62db6 Mon Sep 17 00:00:00 2001 From: Sema Date: Sun, 26 Nov 2023 16:15:36 -0500 Subject: [PATCH] Fixed test --- package.json | 1 - test/common.js | 2 +- test/engine1.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 086e524..355f39a 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "grunt": "^1.6.1", "grunt-contrib-jshint": "^3.2.0", "grunt-contrib-uglify": "^5.2.2", - "midi-test": "^1.2.7", "mocha": "^10.2.0", "nyc": "^15.1.0", "web-audio-test": "^0.0.6", diff --git a/test/common.js b/test/common.js index cc6698f..a12a9f9 100644 --- a/test/common.js +++ b/test/common.js @@ -1033,7 +1033,7 @@ describe('UMP messages', function() { }); it('umpNoteOff', function() { var s = '41823d00 00000000 -- Note Off'; - var msg = JZZ.UMP.umpNoteOff(1, 2, 'C#5kkkkkk'); + var msg = JZZ.UMP.umpNoteOff(1, 2, 'C#5'); assert.equal(msg.isNoteOn(), false); assert.equal(msg.isNoteOff(), true); assert.equal(JZZ.UMP.umpNoteOff(1, 2, 61).toString(), s); diff --git a/test/engine1.js b/test/engine1.js index 3f665a1..65c13b6 100644 --- a/test/engine1.js +++ b/test/engine1.js @@ -4,7 +4,7 @@ global.navigator = {}; var JZZ = require('..'); var MT; -if (process.platform == 'darwin' || process.platform == 'linux') { +if (0 || process.platform == 'darwin' || process.platform == 'linux') { try { MT = require('midi-test'); }