mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Simplify _.unescape unit test.
Former-commit-id: 113ee8e94a5a6a7d72b4e39672c60d67342def49
This commit is contained in:
@@ -2386,8 +2386,8 @@
|
|||||||
QUnit.module('lodash.unescape');
|
QUnit.module('lodash.unescape');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
var escaped = '<h1>Moe's famous "death by chocolate" brownies & cake<\/h1>',
|
var escaped = '&<>"'\/',
|
||||||
unescaped = '<h1>Moe\'s famous "death by chocolate" brownies & cake<\/h1>';
|
unescaped = '&<>"\'\/';
|
||||||
|
|
||||||
test('should unescape entities in the correct order', function() {
|
test('should unescape entities in the correct order', function() {
|
||||||
equal(_.unescape('&lt;'), '<');
|
equal(_.unescape('&lt;'), '<');
|
||||||
|
|||||||
Reference in New Issue
Block a user