Skip to content

Commit

Permalink
Slightly improved coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Nov 22, 2020
1 parent 4bfc65e commit 9c4043d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -67,15 +67,15 @@ by running `npm remove midi-test --save-dev`.

```html
<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@1.1.5"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@1.1.6"></script> // any particular version
//...
```

##### CDN (unpkg)

```html
<script src="https://unpkg.com/jzz"></script> // the latest version, or
<script src="https://unpkg.com/jzz@1.1.5"></script> // any particular version
<script src="https://unpkg.com/jzz@1.1.6"></script> // any particular version
//...
```

Expand Down
2 changes: 1 addition & 1 deletion javascript/JZZ.js
Expand Up @@ -13,7 +13,7 @@
})(this, function() {

var _scope = typeof window === 'undefined' ? global : window;
var _version = '1.1.5';
var _version = '1.1.6';
var i, j, k, m, n;

var _time = Date.now || function () { return new Date().getTime(); };
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "1.1.5",
"version": "1.1.6",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions test/common.js
Expand Up @@ -282,6 +282,7 @@ describe('MIDI messages', function() {
assert.equal(JZZ.MIDI.rpn(0, 1, 2)[1].toString(), 'b0 64 02 -- Registered Parameter Number LSB');
assert.equal(JZZ.MIDI.rpn(0, 0x82)[0].toString(), 'b0 65 01 -- Registered Parameter Number MSB');
assert.equal(JZZ.MIDI.rpn(0, 0x82)[1].toString(), 'b0 64 02 -- Registered Parameter Number LSB');
assert.throws(function() { JZZ.MIDI.rpn(0, 0x8000); });
});
it('rpnMSB', function() {
assert.equal(JZZ.MIDI.rpnMSB(0, 0).toString(), 'b0 65 00 -- Registered Parameter Number MSB');
Expand Down
2 changes: 1 addition & 1 deletion test/tests.js
Expand Up @@ -114,7 +114,7 @@ module.exports = function(JZZ, PARAMS, DRIVER) {
JZZ.lib.registerMidiOut('Dummy MIDI-Out', widget2); // should ignore second call
port2 = engine.openMidiOut('Dummy MIDI-Out');
port2.connect(port1);
port2.and(function() { assert.equal(this.connected(), 1); this.send([]); this.noteOn(0, 60); });
port2.and(function() { assert.equal(this.connected(), 1); this.send([]); this.rpn(0, 0).ch(1).rpn(0); this.noteOn(0, 60); });
});
},

Expand Down

0 comments on commit 9c4043d

Please sign in to comment.