Skip to content

Commit

Permalink
Merge pull request #267 from chrisvariety/formatWithSymbol
Browse files Browse the repository at this point in the history
Remove traces of `formatWithSymbol`.
  • Loading branch information
scurker committed Jul 28, 2020
2 parents 7d929d9 + 9bb6033 commit 95fefd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -110,7 +110,7 @@ euro("1.237,72").subtract(300).format(); // "€937,72"
*currency.js* comes with its own set of default options conforming to USD. You can customize these according to your locale.

`symbol` *default*: `$`<br/>
When `formatWithSymbol` is set to `true`, will include the currency symbol when calling `currency.format()`.
Currency symbol included when calling `currency.format()`.

`separator` *default*: `,`<br/>
Separator dividing the number groups when calling `currency.format()`.
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -314,7 +314,7 @@ test('should format vedic groupings', t => {
});

test('should format using patterns', t => {
let c = (value, opts) => currency(value, Object.assign({}, { formatWithSymbol: true, pattern: '# !'}, opts))
let c = (value, opts) => currency(value, Object.assign({}, { pattern: '# !'}, opts))
, value1 = c(1.23)
, value2 = c(1234.56)
, value3 = c(1234567.89)
Expand All @@ -329,7 +329,7 @@ test('should format using patterns', t => {
});

test('should format using negative patterns', t => {
let c = (value, opts) => currency(value, Object.assign({}, { formatWithSymbol: true, negativePattern: '! (#)'}, opts))
let c = (value, opts) => currency(value, Object.assign({}, { negativePattern: '! (#)'}, opts))
, value1 = c(-1.23)
, value2 = c(-1234.56)
, value3 = c(-1234567.89)
Expand Down

0 comments on commit 95fefd6

Please sign in to comment.