John-David Dalton
278c6dd33d
Cleanup _.merge tests for function properties.
2018-08-30 22:58:11 -07:00
sina
79b9d20a91
Fix inconsistent merging of multiple sources to function property
2018-08-30 22:35:04 -07:00
John-David Dalton
6e62e1e8df
Cleanup ReDoS test.
2018-08-30 22:33:55 -07:00
Manuel Jasso
5c08f18d36
Prevent ReDoS
...
To fix https://github.com/lodash/lodash/issues/3359 , modified reHasUnicodeWord to remove an unnecessary comma which made the regex greedy, this is only a test regex and not a matching regex. Added unit tests, this now should run under 5 ms instead of over 1000 ms for huge 50k+ char words.
2018-08-30 22:07:27 -07:00
John-David Dalton
90e6199a16
Ensure Object.prototype is not augmented by _.merge.
2018-08-30 22:06:15 -07:00
John-David Dalton
5e58cd216c
Fix style nits.
2018-02-03 21:25:41 -08:00
John-David Dalton
d8e069cc34
Avoid merging properties on to __proto__ objects.
2018-01-30 23:21:12 -08:00
John-David Dalton
e33b15674d
Ensure _.omit doesn’t mutate object with deep paths. [ closes #2912 ]
2016-12-30 18:09:11 -06:00
John-David Dalton
ec74813be6
Add non-enumerable symbol tests.
2016-11-24 00:07:26 -06:00
John-David Dalton
67926a4df2
Minor test nit.
2016-11-24 00:07:26 -06:00
John-David Dalton
40a591d0c0
Test _.isEqual crawls symbol properties.
2016-11-24 00:07:26 -06:00
John-David Dalton
a3e077324a
Add support for comparing symbol properties to _.isEqual. [ closes #2840 ]
2016-11-21 23:34:21 -06:00
John-David Dalton
95d3477c22
Fix code style nits.
2016-11-15 22:04:15 -08:00
John-David Dalton
a06d1a0313
Add _.omit and _.pick tests for keys over paths.
2016-11-15 21:47:03 -08:00
John-David Dalton
330c8cb46e
Cleanup path tests.
2016-11-15 21:46:14 -08:00
John-David Dalton
4cb7bea97d
Ensure _.spread doesn’t include arguments after those spread. [ closes #2825 ]
2016-11-15 10:41:11 -08:00
John-David Dalton
ce093845e1
Ensure _.pick supports path arrays. [ closes #2809 ]
2016-11-14 01:06:35 -08:00
John-David Dalton
102c5f00d7
Ensure _.pickBy doesn’t treat keys with dots as deep paths. [ closes #2808 ]
2016-11-14 00:49:47 -08:00
John-David Dalton
2e4c997dba
Use more clear condition in unclonable test.
2016-11-07 23:00:31 -08:00
John-David Dalton
5aaf7e40ae
Cleanup deep path tests.
2016-11-07 23:00:21 -08:00
Aviv Rosental
9ac729e1bc
Add deep functionality for _.omit and _.pick. ( #2794 )
2016-11-06 17:02:41 -08:00
John-David Dalton
3217118fab
Add more _.spread tests.
2016-11-06 00:39:13 -07:00
John-David Dalton
1b3815928d
Ensure fp.mergeAllWith accepts more than 2 sources. [ closes #2786 ]
2016-11-04 01:10:54 -07:00
John-David Dalton
62b66305f2
Adjust conditional assignments.
2016-10-31 20:34:49 -07:00
John-David Dalton
0fcf43b02b
Ensure _.xor returns an empty array when comparing the same array. [ closes #2776 ]
2016-10-31 16:32:58 -07:00
John-David Dalton
d7dbf0951d
Add another _.xor test for multiple arrays.
2016-10-29 18:32:23 -07:00
John-David Dalton
daf6de6a46
Add uncloneable Proxy constructor test.
2016-10-29 18:32:23 -07:00
John-David Dalton
7d4c3ed404
Add async function detection to _.isFunction.
2016-10-29 18:32:23 -07:00
John-David Dalton
b91a515258
Cleanup test labels.
2016-10-27 00:06:59 -07:00
John-David Dalton
bc5729a9de
Use consistent nullish checks.
2016-10-27 00:06:59 -07:00
John-David Dalton
729d1a57aa
Ensure _.xor works with more than two arrays. [ closes #2758 ]
2016-10-27 00:06:59 -07:00
Richard Gibson
1c9a9f364d
Avoid object mutation in getRawTag. [ closes #2755 ]
2016-10-25 23:13:34 -07:00
Josh Soref
6f7a8501cb
Spelling. ( #2745 )
2016-10-20 12:15:15 -07:00
John-David Dalton
a621ba236a
Remove try-catches in tests where possible.
2016-10-10 08:13:15 -07:00
John-David Dalton
a041a3782d
Remove unneeded IE conditional comments test.
2016-10-10 08:12:35 -07:00
John-David Dalton
9f8064a8b5
Add read-only Symbol.toStringTag test.
2016-10-09 23:35:46 -07:00
John-David Dalton
6a8e978fd7
Remove unneeded _.isPlainObject test.
2016-10-09 22:32:20 -07:00
John-David Dalton
aea509c230
Add Symbol.toStringTag test for _.isPlainObject.
2016-10-09 22:25:33 -07:00
John-David Dalton
21113b8c87
Minor hyphen nit. [ci skip]
2016-10-09 22:25:01 -07:00
John-David Dalton
dcf6d382c4
Add missing realm.element.
2016-10-09 21:27:25 -07:00
John-David Dalton
c541598f40
Cleanup testing arguments objects.
2016-10-09 21:09:50 -07:00
John-David Dalton
bd8e38518f
Add more _.isElement tests.
2016-10-09 20:24:48 -07:00
John-David Dalton
22b51ed232
Refine _.isError checks to avoid false positives on plain objects.
2016-10-09 20:06:03 -07:00
John-David Dalton
054e78572b
Add support for ordinals to _.words.
2016-10-09 16:43:44 -07:00
John-David Dalton
9c4c194bb5
Replace Object.create mock with undefined to hit more bizarro code paths.
2016-10-05 23:19:24 -07:00
John-David Dalton
ac74a1ea15
Remove unneeded shim juggle.
2016-10-05 23:19:24 -07:00
John-David Dalton
e4ddf3e155
Add nested check to _.merge test for non-plain object source values.
2016-10-05 23:19:23 -07:00
John-David Dalton
896b27ef73
Remove unneeded bizarro tests.
2016-10-05 23:19:23 -07:00
John-David Dalton
bdf0b9f288
Cleanup Babel workaround.
2016-10-05 23:19:10 -07:00
John-David Dalton
1665e5cbff
Add bizarro _.create test.
2016-10-05 17:22:31 -07:00