Skip to content

Commit

Permalink
More coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Sep 7, 2019
1 parent e0bcf79 commit 1fbc6c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,16 @@ describe('SMF events', function() {
describe('SMPTE', function() {
it('00:00:00:00', function() {
assert.equal(JZZ.SMPTE().toString(), '00:00:00:00');
assert.equal(JZZ.SMPTE(24, 0, 0, 0, 0).toString(), '00:00:00:00');
assert.equal(JZZ.SMPTE(24, 0, 0, 0, 0).toString(), '00:00:00:00');
assert.equal(JZZ.SMPTE(29.97, 0, 0, 0, 0).toString(), '00:00:00:00');
assert.equal(JZZ.SMPTE(30, 0, 0, 0, 0).toString(), '00:00:00:00');
assert.throws(function() { JZZ.SMPTE(31, 0, 0, 0, 0); });
assert.throws(function() { JZZ.SMPTE(30, 24, 0, 0, 0); });
assert.throws(function() { JZZ.SMPTE(30, 0, 60, 0, 0); });
assert.throws(function() { JZZ.SMPTE(30, 0, 0, 60, 0); });
assert.throws(function() { JZZ.SMPTE(30, 0, 0, 0, 30); });
assert.throws(function() { JZZ.SMPTE(30, 0, 0, 0, 0, 8); });
});
it('23:59:59:23', function() {
assert.equal(JZZ.SMPTE().decrQF().incrFrame().decrFrame().toString(), '23:59:59:23');
Expand Down

0 comments on commit 1fbc6c4

Please sign in to comment.