dojo
Version:
Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.
26 lines (21 loc) • 544 B
JavaScript
define([
'intern!object',
'intern/chai!assert',
'../../../cldr/monetary'
], function (registerSuite, assert, monetary) {
registerSuite({
name: 'dojo/cldr/monetary',
'.getData': {
'known special case': function () {
var actual = monetary.getData('ITL');
assert.equal(actual.places, 0);
assert.equal(actual.round, 0);
},
'defaults for cases not specifically defined': function () {
var actual = monetary.getData('USD');
assert.equal(actual.places, 2);
assert.equal(actual.round, 0);
}
}
});
});