Sha256: 96b61d06c66b48a0e9e2b28c46513f8c1813946013f70eba9f8aa4ddbf77295d
Contents?: true
Size: 456 Bytes
Versions: 27
Compression:
Stored size: 456 Bytes
Contents
import { module, test } from '../qunit'; import moment from '../../moment'; module('string prototype'); test('string prototype overrides call', function (assert) { var prior = String.prototype.call, b; String.prototype.call = function () { return null; }; b = moment(new Date(2011, 7, 28, 15, 25, 50, 125)); assert.equal(b.format('MMMM Do YYYY, h:mm a'), 'August 28th 2011, 3:25 pm'); String.prototype.call = prior; });
Version data entries
27 entries across 27 versions & 1 rubygems