Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
add period score test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebradley committed Dec 27, 2016
1 parent a7d3c94 commit b039c26
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/PeriodScoreTest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use es6';

import {expect} from 'chai';

import PeriodScore from '../src/data/PeriodScore';
import Score from '../src/data/Score';

describe('Period Score Test', function() {
let overtimePeriod = new PeriodScore({
period: 5,
});
let nonOvertimePeriod = new PeriodScore({
period: 2
});
it('should test period score formatting', function() {
expect(overtimePeriod.formatPeriod()).to.equal('OT1');
expect(nonOvertimePeriod.formatPeriod()).to.equal('Q2');
});
});

0 comments on commit b039c26

Please sign in to comment.