Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed May 15, 2019
1 parent 142f064 commit df4bd2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ function Sample(done, list) {
};
}

var engine = JZZ({ engine: 'none' });
var test = require('./tests.js')(JZZ, { engine: ['webmidi', 'none'] }, 'none');

describe('Info', function() {
console.log('Node:', process.versions.node);
console.log('process.platform:', process.platform);
console.log('process.arch:', process.arch);
console.log('JZZ:', engine.info().ver);
console.log('JZZ:', JZZ.info().ver);
});

describe('MIDI messages', function() {
Expand Down Expand Up @@ -339,8 +339,6 @@ describe('JZZ.Widget', function() {
});
});

var test = require('./tests.js')(JZZ, 'none');

describe('Engine: none', function() {
test.engine_name();
test.non_existent_midi_in();
Expand Down
2 changes: 1 addition & 1 deletion test/engine1.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (process.platform == 'darwin' || process.platform == 'linux') {
}
}

var test = require('./tests.js')(JZZ, 'node', MT);
var test = require('./tests.js')(JZZ, undefined, 'node', MT);

describe('Engine: node', function() {
test.engine_name();
Expand Down
2 changes: 1 addition & 1 deletion test/engine2.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ global.window = DOM;
global.Event = DOM.Event;
global.CustomEvent = DOM.CustomEvent;

var test = require('./tests.js')(JZZ, 'extension', DOM);
var test = require('./tests.js')(JZZ, { engine: ['webmidi', 'extension'] }, 'extension', DOM);

describe('Engine: extension', function() {
test.engine_name();
Expand Down
4 changes: 2 additions & 2 deletions test/tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var assert = require('assert');
module.exports = function(JZZ, ENGINE, DRIVER) {
var engine = JZZ({ engine: ENGINE });
module.exports = function(JZZ, PARAMS, ENGINE, DRIVER) {
var engine = JZZ(PARAMS);
return {

engine_name: function() {
Expand Down

0 comments on commit df4bd2b

Please sign in to comment.