aboutsummaryrefslogtreecommitdiffstats
path: root/library/moment/tasks/qtest.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-18 23:56:25 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-18 23:56:25 +0100
commitb23284cba28335f61595f2264685b1bbafc19183 (patch)
tree696cbfc2b5a609c636e0d1d7a3a2f9ad7a302266 /library/moment/tasks/qtest.js
parent0c163c4d038a4c26335af1bde366d8ef9e53c464 (diff)
downloadvolse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.tar.gz
volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.tar.bz2
volse-hubzilla-b23284cba28335f61595f2264685b1bbafc19183.zip
move moment.min.js and remove unneeded files
Diffstat (limited to 'library/moment/tasks/qtest.js')
-rw-r--r--library/moment/tasks/qtest.js46
1 files changed, 0 insertions, 46 deletions
diff --git a/library/moment/tasks/qtest.js b/library/moment/tasks/qtest.js
deleted file mode 100644
index ab925321b..000000000
--- a/library/moment/tasks/qtest.js
+++ /dev/null
@@ -1,46 +0,0 @@
-module.exports = function (grunt) {
- grunt.task.registerTask('qtest', 'run tests locally', function () {
- var done = this.async();
-
- var testrunner = require('qunit');
-
- testrunner.options.log.assertions = false;
- testrunner.options.log.tests = false;
- testrunner.options.log.summary = false;
- testrunner.options.log.testing = false;
- testrunner.options.maxBlockDuration = 120000;
-
- var tests;
-
- if (grunt.option('only') != null) {
- tests = grunt.file.expand.apply(null, grunt.option('only').split(',').map(function (file) {
- if (file === 'moment') {
- return 'build/umd/test/moment/*.js';
- } else if (file === 'locale') {
- return 'build/umd/test/locale/*.js';
- } else {
- return 'build/umd/test/' + file + '.js';
- }
- }));
- } else {
- tests = grunt.file.expand('build/umd/test/moment/*.js',
- 'build/umd/test/locale/*.js');
- }
-
- testrunner.run({
- code: 'build/umd/moment.js',
- tests: tests
- }, function (err, report) {
- if (err) {
- console.log('woot', err, report);
- done(err);
- return;
- }
- err = null;
- if (report.failed !== 0) {
- err = new Error(report.failed + ' tests failed');
- }
- done(err);
- });
- });
-};