Skip to content

Commit

Permalink
Add test for version
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rudmin committed Jul 21, 2020
1 parent ace356f commit 24004fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ describe('Recorder', function(){
expect(Recorder.isRecordingSupported()).to.be.ok;
});

it('should have version', function () {
const { version } = require('../package.json');
expect(Recorder.version).to.equal(version);
});

it('should create an instance without config', function () {
var rec = new Recorder();
expect(rec.state).to.equal('inactive');
Expand Down

0 comments on commit 24004fe

Please sign in to comment.