mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Minor whitespace nits in test.js. [ci skip]
This commit is contained in:
@@ -2346,7 +2346,7 @@
|
|||||||
deepEqual(curried(1, 2, 3, 4), expected);
|
deepEqual(curried(1, 2, 3, 4), expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should allow specifying `arity`', 3, function(){
|
test('should allow specifying `arity`', 3, function() {
|
||||||
var curried = _.curryRight(fn, 3),
|
var curried = _.curryRight(fn, 3),
|
||||||
expected = [1, 2, 3];
|
expected = [1, 2, 3];
|
||||||
|
|
||||||
@@ -2721,7 +2721,7 @@
|
|||||||
asyncTest('should defer `func` execution', 1, function() {
|
asyncTest('should defer `func` execution', 1, function() {
|
||||||
if (!(isRhino && isModularize)) {
|
if (!(isRhino && isModularize)) {
|
||||||
var pass = false;
|
var pass = false;
|
||||||
_.defer(function(){ pass = true; });
|
_.defer(function() { pass = true; });
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
ok(pass);
|
ok(pass);
|
||||||
@@ -2783,7 +2783,7 @@
|
|||||||
asyncTest('should delay `func` execution', 2, function() {
|
asyncTest('should delay `func` execution', 2, function() {
|
||||||
if (!(isRhino && isModularize)) {
|
if (!(isRhino && isModularize)) {
|
||||||
var pass = false;
|
var pass = false;
|
||||||
_.delay(function(){ pass = true; }, 96);
|
_.delay(function() { pass = true; }, 96);
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
ok(!pass);
|
ok(!pass);
|
||||||
@@ -3263,7 +3263,7 @@
|
|||||||
var func = _[methodName];
|
var func = _[methodName];
|
||||||
|
|
||||||
test('`_.' + methodName + '` should ' + (isStrict ? '' : 'not ') + 'throw strict mode errors', 1, function() {
|
test('`_.' + methodName + '` should ' + (isStrict ? '' : 'not ') + 'throw strict mode errors', 1, function() {
|
||||||
var object = { 'a': null, 'b': function(){} },
|
var object = { 'a': null, 'b': function() {} },
|
||||||
pass = !isStrict;
|
pass = !isStrict;
|
||||||
|
|
||||||
if (freeze) {
|
if (freeze) {
|
||||||
|
|||||||
Reference in New Issue
Block a user