{"size": 585, "ext": "js", "max_stars_repo_path": "test/currency.js", "max_stars_repo_name": "skwee357/cassier", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/currency.js", "max_issues_repo_name": "skwee357/cassier", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/currency.js", "max_forks_repo_name": "skwee357/cassier", "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": 29.25, "max_line_length": 78, "alphanum_fraction": 0.6017094017}
var
    chai = require('chai'),
    assert = chai.assert,
    cassier = require('../src/cassier');

chai.should();

describe('Cassier currency module', function () {
    it('Should return USD currency', function () {
        var usd = cassier.currencyInfo('USD');
        usd.should.have.property('code', 'USD');
        usd.should.have.property('symbol', 'US$');
        usd.should.have.property('symbol_native', '$')
    });

    it('Should return null because currency XXX does not exist', function () {
        assert(cassier.currencyInfo('XXX') === null, "Not null");
    });
});
