Sha256: 70d3c0863ef215e058e72b67e342e6485065121dd8dc58e8c45472d42ab8af30

Contents?: true

Size: 464 Bytes

Versions: 19

Compression:

Stored size: 464 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

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.15.0 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.14.2 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.14.1 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.14.0 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.13.4 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.13.3 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.13.2 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.13.1 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.13.0 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.7 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.12.0 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.6 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.5 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.4 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.3 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.2 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.1 vendor/moment/src/test/moment/string_prototype.js
card-mod-date-0.11.0 vendor/moment/src/test/moment/string_prototype.js