Remove stubs.

This commit is contained in:
John-David Dalton
2017-01-19 15:25:10 -08:00
parent 54abb96a85
commit c5c0ff77b6
5 changed files with 0 additions and 90 deletions

View File

@@ -1,21 +0,0 @@
/**
* This method returns a new empty array.
*
* @since 4.13.0
* @category Util
* @returns {Array} Returns the new empty array.
* @example
*
* const arrays = times(2, stubArray);
*
* console.log(arrays);
* // => [[], []]
*
* console.log(arrays[0] === arrays[1]);
* // => false
*/
function stubArray() {
return [];
}
export default stubArray;

View File

@@ -1,16 +0,0 @@
/**
* This method returns `false`.
*
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `false`.
* @example
*
* times(2, stubFalse);
* // => [false, false]
*/
function stubFalse() {
return false;
}
export default stubFalse;

View File

@@ -1,21 +0,0 @@
/**
* This method returns a new empty object.
*
* @since 4.13.0
* @category Util
* @returns {Object} Returns the new empty object.
* @example
*
* const objects = times(2, stubObject);
*
* console.log(objects);
* // => [{}, {}]
*
* console.log(objects[0] === objects[1]);
* // => false
*/
function stubObject() {
return {};
}
export default stubObject;

View File

@@ -1,16 +0,0 @@
/**
* This method returns an empty string.
*
* @since 4.13.0
* @category Util
* @returns {string} Returns the empty string.
* @example
*
* times(2, stubString);
* // => ['', '']
*/
function stubString() {
return '';
}
export default stubString;

View File

@@ -1,16 +0,0 @@
/**
* This method returns `true`.
*
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `true`.
* @example
*
* times(2, stubTrue);
* // => [true, true]
*/
function stubTrue() {
return true;
}
export default stubTrue;