Plato on Github
Report Home
dojo/tests/unit/cldr/monetary.js
Maintainability
76.60
Lines of code
25
Difficulty
8.55
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
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); } } }); });