mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27: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
|
||||
* source to minify.
|
||||
* @param {Object} options The options object containing `onComplete`, `silent`,
|
||||
* and `workingName`.
|
||||
* @param {Object} options The options object containing `onComplete`,
|
||||
* `silent`, and `workingName`.
|
||||
*/
|
||||
function minify(source, options) {
|
||||
options || (options = {});
|
||||
@@ -72,8 +72,8 @@
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {String} source The source to minify.
|
||||
* @param {Object} options The options object containing `onComplete`, `silent`,
|
||||
* and `workingName`.
|
||||
* @param {Object} options The options object containing `onComplete`,
|
||||
* `silent`, and `workingName`.
|
||||
*/
|
||||
function Minify(source, options) {
|
||||
source || (source = '');
|
||||
|
||||
@@ -32,9 +32,6 @@
|
||||
Object.keys = Object._keys;
|
||||
delete Object._keys;
|
||||
|
||||
// set to test `_.noConflict`
|
||||
_ = {};
|
||||
|
||||
// load Lo-Dash again to overwrite the existing `_` value
|
||||
document.write('<script src="../' + QUnit.config.lodashFilename + '.js"><\/script>');
|
||||
|
||||
|
||||
@@ -523,7 +523,7 @@
|
||||
var start = _.after(2, _.once(QUnit.start));
|
||||
|
||||
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) {
|
||||
commands.push('strict');
|
||||
}
|
||||
@@ -557,7 +557,7 @@
|
||||
var start = _.once(QUnit.start);
|
||||
|
||||
asyncTest('should not have deep clone', function() {
|
||||
build(['--silent', 'underscore'], function(filepath, source) {
|
||||
build(['-s', 'underscore'], function(filepath, source) {
|
||||
vm.runInContext(source, context);
|
||||
|
||||
var array = [{ 'a': 1 }],
|
||||
|
||||
Reference in New Issue
Block a user