Add instance pass through unit test, and ensure the pre-compile step escapes the "_wrapped" property for Closure Compiler.

Former-commit-id: 4bb8f77bacdafdd6822564c18751310235679476
This commit is contained in:
John-David Dalton
2012-05-09 01:43:40 -04:00
parent 45f9d80a81
commit b5c4a9241b
3 changed files with 18 additions and 13 deletions

View File

@@ -91,6 +91,11 @@
test('creates a new instance when called without the `new` operator', function() {
ok(_() instanceof _);
});
test('should pass through LoDash instances', function() {
var wrapped = _([]);
equal(_(wrapped), wrapped);
});
}());
/*--------------------------------------------------------------------------*/