{"size": 335, "ext": "js", "max_stars_repo_path": "app/utils/nunjucks-filters/currency.test.js", "max_stars_repo_name": "quis/pay-selfservice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/utils/nunjucks-filters/currency.test.js", "max_issues_repo_name": "quis/pay-selfservice", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/utils/nunjucks-filters/currency.test.js", "max_forks_repo_name": "quis/pay-selfservice", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 30.4545454545, "max_line_length": 97, "alphanum_fraction": 0.6865671642}
'use strict'

const {expect} = require('chai')
const currencyFilter = require('./currency')

describe('When a pence value is passed through the Nunjucks currency filter', () => {
  it('it should convert it to the same amount in pounds and include the currency symbol', () => {
    expect(currencyFilter(999)).to.equal('£9.99')
  })
})
