Sha256: 2ad66daf2cff39ef6cddd27a2b7825581d52efa726f5c36115842fd6bd9ed112
Contents?: true
Size: 899 Bytes
Versions: 19
Compression:
Stored size: 899 Bytes
Contents
/*global QUnit:false*/ import moment from '../moment'; import { setupDeprecationHandler, teardownDeprecationHandler, } from './helpers/deprecation-handler'; export var test = QUnit.test, only = QUnit.only; export function module(name, lifecycle) { QUnit.module(name, { beforeEach: function () { moment.locale('en'); moment.createFromInputFallback = function (config) { throw new Error('input not handled by moment: ' + config._i); }; setupDeprecationHandler(test, moment, 'core'); if (lifecycle && lifecycle.setup) { lifecycle.setup(); } }, afterEach: function () { teardownDeprecationHandler(test, moment, 'core'); if (lifecycle && lifecycle.teardown) { lifecycle.teardown(); } }, }); }
Version data entries
19 entries across 19 versions & 1 rubygems