%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11585/cwd/html/ppaobm/vendor/bower-asset/moment/src/test/moment/ |
Upload File : |
import { module, test } from '../qunit'; import moment from '../../moment'; module('creation data'); test('valid date', function (assert) { var dat = moment('1992-10-22'); var orig = dat.creationData(); assert.equal(dat.isValid(), true, '1992-10-22 is valid'); assert.equal(orig.input, '1992-10-22', 'original input is not correct.'); assert.equal(orig.format, 'YYYY-MM-DD', 'original format is defined.'); assert.equal(orig.locale._abbr, 'en', 'default locale is en'); assert.equal(orig.isUTC, false, 'not a UTC date'); }); test('valid date at fr locale', function (assert) { var dat = moment('1992-10-22', 'YYYY-MM-DD', 'fr'); var orig = dat.creationData(); assert.equal(orig.locale._abbr, 'fr', 'locale is fr'); }); test('valid date with formats', function (assert) { var dat = moment('29-06-1995', ['MM-DD-YYYY', 'DD-MM', 'DD-MM-YYYY']); var orig = dat.creationData(); assert.equal(orig.format, 'DD-MM-YYYY', 'DD-MM-YYYY format is defined.'); }); test('strict', function (assert) { assert.ok(moment('2015-01-02', 'YYYY-MM-DD', true).creationData().strict, 'strict is true'); assert.ok(!moment('2015-01-02', 'YYYY-MM-DD').creationData().strict, 'strict is true'); });