/
githubmirror
/
moment
Обзор
Документация
Войти
/
githubmirror
/
moment
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/test/qunit.js
31 строка
899 B
Iskren Chernev
Run prettier --write
27 апр 2020, 02:14
27 апр 2020, 02:14
38fe036
Код
Авторство
О чём код?
/*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(); } }, }); }