%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('instanceof'); test('instanceof', function (assert) { var mm = moment([2010, 0, 1]); var extend = function (a, b) { var i; for (i in b) { a[i] = b[i]; } return a; }; assert.equal(moment() instanceof moment, true, 'simple moment object'); assert.equal(extend({}, moment()) instanceof moment, false, 'extended moment object'); assert.equal(moment(null) instanceof moment, true, 'invalid moment object'); assert.equal(new Date() instanceof moment, false, 'date object is not moment object'); assert.equal(Object instanceof moment, false, 'Object is not moment object'); assert.equal('foo' instanceof moment, false, 'string is not moment object'); assert.equal(1 instanceof moment, false, 'number is not moment object'); assert.equal(NaN instanceof moment, false, 'NaN is not moment object'); assert.equal(null instanceof moment, false, 'null is not moment object'); assert.equal(undefined instanceof moment, false, 'undefined is not moment object'); });