Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylescarbx committed Oct 28, 2024
1 parent 3498724 commit b703766
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ Strings.DEFAULTS = {
[Strings.RULE]: 'Rule',
[Strings.SALE]: 'Sale',
[Strings.TRANSACTION_DATE]: 'Transaction Date',
[Strings.OTHER_COMP]: 'Other Compensation',
[Strings.OTHER_COMP]: {
singular: 'Other Compensation',
plural: 'Other Compensation'
},
[Strings.COMPENSATION]: {
singular: 'Compensation',
plural: 'Compensation'
Expand Down
3 changes: 3 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,7 @@ tap.test('instance get', t => {
t.strictEqual(d.get(Strings.ANNUAL_CONTRACT_VALUE, { abbrev: true }), 'ACV')
t.strictEqual(s.get(Strings.ANNUAL_CONTRACT_VALUE, { abbrev: true }), 'ACV')
t.strictEqual(d.get(Strings.TRANSACTION_DATE, { abbrev: true }), 'TD')
t.strictEqual(d.get(Strings.OTHER_COMP, { abbrev: true }), 'OC')

// 2rd arg object as opts with plural boolean and flu boolean
t.strictEqual(d.get(Strings.REPORT, { plural: false, flu: true }), 'Report')
Expand Down Expand Up @@ -967,6 +968,8 @@ tap.test('defaults', t => {
t.strictEqual(d.getPlural(Strings.SALE), 'Sales')
t.strictEqual(d.getSingular(Strings.TRANSACTION_DATE), 'Transaction Date')
t.strictEqual(d.getPlural(Strings.TRANSACTION_DATE), 'Transaction Dates')
t.strictEqual(d.getSingular(Strings.OTHER_COMP), 'Other Compensation')
t.strictEqual(d.getPlural(Strings.OTHER_COMP), 'Other Compensation')
t.strictEqual(d.getSingular(Strings.COMPENSATION), 'Compensation')
t.strictEqual(d.getPlural(Strings.COMPENSATION), 'Compensation')
t.strictEqual(d.getSingular(Strings.REPORT), 'Report')
Expand Down

0 comments on commit b703766

Please sign in to comment.