Skip to content

Commit

Permalink
Merge pull request #44 from HarvestProfit/use-plural-seed-units
Browse files Browse the repository at this point in the history
Uses plural seed units
  • Loading branch information
humphreyja authored May 18, 2021
2 parents df7053b + d3a3632 commit 3281db0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@harvest-profit/units",
"version": "1.4.4",
"version": "1.4.5",
"description": "Units helper for Harvest Profit javascript applications",
"main": "dist/index.js",
"repository": "https://github.com/HarvestProfit/harvest-profit-units",
Expand Down
16 changes: 8 additions & 8 deletions src/definitions/seed.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ export default {
value: 80000,
selectableAs: 'bags'
},
'unit - 130k': {
name: 'unit - 130k',
aliases: ['unit130k', 'units - 130k', 'units130k'],
'units - 130k': {
name: 'units - 130k',
aliases: ['unit130k', 'unit - 130k', 'units130k'],
value: 130000,
selectableAs: 'unit - 130k'
selectableAs: 'units - 130k'
},
'unit - 140k': {
name: 'unit - 140k',
aliases: ['unit140k', 'units - 140k', 'units140k'],
'units - 140k': {
name: 'units - 140k',
aliases: ['unit140k', 'unit - 140k', 'units140k'],
value: 140000,
selectableAs: 'unit - 140k',
selectableAs: 'units - 140k',
},
}
4 changes: 2 additions & 2 deletions test/UnitsHelper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ describe('UnitsHelper', () => {
const units = UnitsHelper.listAvailableUnits({ units: 'seed' });
expect(units).toEqual(availableSeedUnits);
expect(units).toContain('seeds');
expect(units).toContain('unit - 130k');
expect(units).toContain('units - 130k');
expect(units).toContain('bags');
expect(units).toContain('unit - 140k');
expect(units).toContain('units - 140k');
});

it('should list no available seed units when unit is "custom"', () => {
Expand Down

0 comments on commit 3281db0

Please sign in to comment.