mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Cleanup test files.
Former-commit-id: 3b138bc74c2f4c2c6d374893c0f90a8422a7248b
This commit is contained in:
@@ -39,8 +39,8 @@
|
|||||||
*
|
*
|
||||||
* @param {Array|String} source The array of command-line arguments or the
|
* @param {Array|String} source The array of command-line arguments or the
|
||||||
* source to minify.
|
* source to minify.
|
||||||
* @param {Object} options The options object containing `onComplete`, `silent`,
|
* @param {Object} options The options object containing `onComplete`,
|
||||||
* and `workingName`.
|
* `silent`, and `workingName`.
|
||||||
*/
|
*/
|
||||||
function minify(source, options) {
|
function minify(source, options) {
|
||||||
options || (options = {});
|
options || (options = {});
|
||||||
@@ -72,8 +72,8 @@
|
|||||||
* @private
|
* @private
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {String} source The source to minify.
|
* @param {String} source The source to minify.
|
||||||
* @param {Object} options The options object containing `onComplete`, `silent`,
|
* @param {Object} options The options object containing `onComplete`,
|
||||||
* and `workingName`.
|
* `silent`, and `workingName`.
|
||||||
*/
|
*/
|
||||||
function Minify(source, options) {
|
function Minify(source, options) {
|
||||||
source || (source = '');
|
source || (source = '');
|
||||||
|
|||||||
@@ -32,9 +32,6 @@
|
|||||||
Object.keys = Object._keys;
|
Object.keys = Object._keys;
|
||||||
delete Object._keys;
|
delete Object._keys;
|
||||||
|
|
||||||
// set to test `_.noConflict`
|
|
||||||
_ = {};
|
|
||||||
|
|
||||||
// load Lo-Dash again to overwrite the existing `_` value
|
// load Lo-Dash again to overwrite the existing `_` value
|
||||||
document.write('<script src="../' + QUnit.config.lodashFilename + '.js"><\/script>');
|
document.write('<script src="../' + QUnit.config.lodashFilename + '.js"><\/script>');
|
||||||
|
|
||||||
|
|||||||
@@ -523,7 +523,7 @@
|
|||||||
var start = _.after(2, _.once(QUnit.start));
|
var start = _.after(2, _.once(QUnit.start));
|
||||||
|
|
||||||
asyncTest(strictMode + ' should ' + (index ? 'error': 'silently fail') + ' attempting to overwrite read-only properties', function() {
|
asyncTest(strictMode + ' should ' + (index ? 'error': 'silently fail') + ' attempting to overwrite read-only properties', function() {
|
||||||
var commands = ['--silent', 'include=bindAll,defaults,extend'];
|
var commands = ['-s', 'include=bindAll,defaults,extend'];
|
||||||
if (index) {
|
if (index) {
|
||||||
commands.push('strict');
|
commands.push('strict');
|
||||||
}
|
}
|
||||||
@@ -557,7 +557,7 @@
|
|||||||
var start = _.once(QUnit.start);
|
var start = _.once(QUnit.start);
|
||||||
|
|
||||||
asyncTest('should not have deep clone', function() {
|
asyncTest('should not have deep clone', function() {
|
||||||
build(['--silent', 'underscore'], function(filepath, source) {
|
build(['-s', 'underscore'], function(filepath, source) {
|
||||||
vm.runInContext(source, context);
|
vm.runInContext(source, context);
|
||||||
|
|
||||||
var array = [{ 'a': 1 }],
|
var array = [{ 'a': 1 }],
|
||||||
|
|||||||
Reference in New Issue
Block a user