Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/proxy_server/node_modules/country-data/test/ drwxr-xr-x | |
| Viewing file: Select action/file-type: var currencies = require('..').currencies,
assert = require('assert'),
_ = require('underscore');
describe('currencies', function () {
describe('all', function () {
it('should be array', function () {
assert( _.isArray(currencies.all) );
});
});
describe('code', function () {
it('should find USD', function () {
assert.equal( currencies.USD.name, 'United States dollar');
});
});
describe('formatting', function () {
it("decimals should be numbers", function () {
assert(_.isNumber(currencies.USD.decimals));
});
});
describe('symbols', function () {
it('should find $', function () {
assert.equal( currencies.USD.symbol, '$');
});
it('should find ¥', function () {
assert.equal( currencies.JPY.symbol, '¥');
});
it('should find R', function () {
assert.equal( currencies.ZAR.symbol, 'R');
});
it('should find AED (has no symbol)', function () {
assert.equal( currencies.AED.symbol, 'AED');
});
});
});
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0858 ]-- |