mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-11 08:24:05 +02:00
Switch to ghu and eslint.
This commit is contained in:
@@ -25,7 +25,7 @@ $(function () {
|
||||
describe('integration tests', function () {
|
||||
|
||||
// @include "tests/integration/*.js"
|
||||
// @include "tests/integration/*/*.js"
|
||||
// @-include "tests/integration/*/*.js"
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -40,6 +40,7 @@
|
||||
font-weight: bold;
|
||||
line-height: 32px;
|
||||
padding: 0 8px;
|
||||
text-shadow: 0 0 4px @col-text;
|
||||
|
||||
&.pass {
|
||||
background: @col-pass;
|
||||
|
@@ -97,13 +97,13 @@ describe('module \'' + ID + '\'', function () {
|
||||
it('#backlink has correct href', function () {
|
||||
|
||||
this.applyFn();
|
||||
assert.strictEqual($('#backlink').attr('href'), 'http://larsjung.de/h5ai/');
|
||||
assert.strictEqual($('#backlink').attr('href'), 'https://larsjung.de/h5ai/');
|
||||
});
|
||||
|
||||
it('#backlink has correct title', function () {
|
||||
|
||||
this.applyFn();
|
||||
assert.strictEqual($('#backlink').attr('title'), 'powered by h5ai - http://larsjung.de/h5ai/');
|
||||
assert.strictEqual($('#backlink').attr('title'), 'powered by h5ai - https://larsjung.de/h5ai/');
|
||||
});
|
||||
|
||||
it('#backlink has correct text', function () {
|
||||
|
@@ -14,7 +14,6 @@ var $mochaProgress = $mochaBar.find('.progress');
|
||||
|
||||
|
||||
function toggleFailureFilter(ev) {
|
||||
|
||||
ev.stopImmediatePropagation();
|
||||
|
||||
showOnlyFailures = !showOnlyFailures;
|
||||
@@ -27,8 +26,6 @@ function toggleFailureFilter(ev) {
|
||||
}
|
||||
|
||||
function addSuiteStats() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var $suite = $(this);
|
||||
|
||||
var tests = $suite.find('.test').length;
|
||||
@@ -65,16 +62,12 @@ function addSuiteStats() {
|
||||
}
|
||||
|
||||
function fixCodeFormatting() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var $code = $(this);
|
||||
$code.text($code.text().trim().replace(/;\n\s*/g, ';\n'));
|
||||
}
|
||||
|
||||
|
||||
function onEnd() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var runner = this;
|
||||
var failed = runner.stats.failures > 0;
|
||||
var stats = (runner.stats.duration / 1000.0).toFixed(3) + 's';
|
||||
@@ -91,8 +84,6 @@ function onEnd() {
|
||||
}
|
||||
|
||||
function onTest() {
|
||||
/*jshint validthis: true */
|
||||
|
||||
var runner = this;
|
||||
var percent = 100.0 * runner.stats.tests / runner.total;
|
||||
var stats = ((new Date().getTime() - runner.stats.start) / 1000.0).toFixed(3) + 's';
|
||||
@@ -105,14 +96,12 @@ function onTest() {
|
||||
}
|
||||
|
||||
function setupMocha() {
|
||||
|
||||
window.assert = chai.assert;
|
||||
mocha.setup('bdd');
|
||||
$(function () { $mochaBar.appendTo('#mocha'); });
|
||||
}
|
||||
|
||||
function runMocha() {
|
||||
|
||||
mocha.run().on('test', onTest).on('end', onEnd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user