From 7de3bf958db7032e6d7673c7339622d440c67aa2 Mon Sep 17 00:00:00 2001 From: Sema Date: Fri, 12 Apr 2024 00:14:07 -0400 Subject: [PATCH] Version test --- README.md | 2 ++ test/mocha.js | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index a558342..591da38 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ [![npm](https://img.shields.io/npm/v/jzz-input-kbd.svg)](https://www.npmjs.com/package/jzz-input-kbd) [![npm](https://img.shields.io/npm/dt/jzz-input-kbd.svg)](https://www.npmjs.com/package/jzz-input-kbd) [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/jzz-input-kbd/badge)](https://www.jsdelivr.com/package/npm/jzz-input-kbd) +[![build](https://github.com/jazz-soft/JZZ-input-Kbd/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/JZZ-input-Kbd/actions) +[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/JZZ-input-Kbd/badge.svg?branch=master)](https://coveralls.io/github/jazz-soft/JZZ-input-Kbd?branch=master) ## Virtual piano controls for your MIDI projects diff --git a/test/mocha.js b/test/mocha.js index 71c628d..1edcb73 100644 --- a/test/mocha.js +++ b/test/mocha.js @@ -1,12 +1,21 @@ const assert = require('assert'); const JSDOM = require('jsdom').JSDOM; const WMT = require('web-midi-test'); +const version = require('../package.json').version; +const JZZ = require('jzz'); +require('..')(JZZ); var midi_out = new WMT.MidiDst('VIRTUAL MIDI-Out'); midi_out.connect(); global.__coverage__ = {}; +describe('Info', function() { + it('version ' + version, function() { + assert.equal(JZZ.input.Kbd.version(), version); + }); +}); + describe('In browser', function() { before(function() { return new Promise(function(resolve) {