mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Rename skipTest to skipAssert.
This commit is contained in:
@@ -79,7 +79,7 @@
|
|||||||
* @param {Object} assert The QUnit assert object.
|
* @param {Object} assert The QUnit assert object.
|
||||||
* @param {number} [count=1] The number of tests to skip.
|
* @param {number} [count=1] The number of tests to skip.
|
||||||
*/
|
*/
|
||||||
function skipTest(assert, count) {
|
function skipAssert(assert, count) {
|
||||||
count || (count = 1);
|
count || (count = 1);
|
||||||
while (count--) {
|
while (count--) {
|
||||||
assert.ok(true, 'test skipped');
|
assert.ok(true, 'test skipped');
|
||||||
@@ -118,7 +118,7 @@
|
|||||||
assert.deepEqual(actual, [1, 3]);
|
assert.deepEqual(actual, [1, 3]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(assert, 2);
|
skipAssert(assert, 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
assert.notOk('placeholder' in lodash);
|
assert.notOk('placeholder' in lodash);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(assert, 2);
|
skipAssert(assert, 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
assert.deepEqual(lodash.remove(), []);
|
assert.deepEqual(lodash.remove(), []);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(assert, 3);
|
skipAssert(assert, 3);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}());
|
}());
|
||||||
@@ -889,7 +889,7 @@
|
|||||||
assert.strictEqual(mapCount, 5, 'mapCount');
|
assert.strictEqual(mapCount, 5, 'mapCount');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
skipTest(assert, 3);
|
skipAssert(assert, 3);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
598
test/test.js
598
test/test.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user