mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove escaping backticks.
This commit is contained in:
16
test/test.js
16
test/test.js
@@ -5450,8 +5450,8 @@
|
||||
QUnit.module('lodash.escape');
|
||||
|
||||
(function() {
|
||||
var escaped = '&<>"'`\/',
|
||||
unescaped = '&<>"\'`\/';
|
||||
var escaped = '&<>"'/',
|
||||
unescaped = '&<>"\'/';
|
||||
|
||||
escaped += escaped;
|
||||
unescaped += unescaped;
|
||||
@@ -21728,8 +21728,8 @@
|
||||
assert.expect(1);
|
||||
|
||||
var strings = ['<p><%- value %></p>', '<p><%-value%></p>', '<p><%-\nvalue\n%></p>'],
|
||||
expected = lodashStable.map(strings, lodashStable.constant('<p>&<>"'`\/</p>')),
|
||||
data = { 'value': '&<>"\'`\/' };
|
||||
expected = lodashStable.map(strings, lodashStable.constant('<p>&<>"'/</p>')),
|
||||
data = { 'value': '&<>"\'/' };
|
||||
|
||||
var actual = lodashStable.map(strings, function(string) {
|
||||
return _.template(string)(data);
|
||||
@@ -22268,13 +22268,13 @@
|
||||
|
||||
var array = ['<%= a %>', '<%- b %>', '<% print(c) %>'],
|
||||
compiles = lodashStable.map(array, _.template),
|
||||
data = { 'a': 'one', 'b': '`two`', 'c': 'three' };
|
||||
data = { 'a': 'one', 'b': '"two"', 'c': 'three' };
|
||||
|
||||
var actual = lodashStable.map(compiles, function(compiled) {
|
||||
return compiled(data);
|
||||
});
|
||||
|
||||
assert.deepEqual(actual, ['one', '`two`', 'three']);
|
||||
assert.deepEqual(actual, ['one', '"two"', 'three']);
|
||||
});
|
||||
}());
|
||||
|
||||
@@ -24205,8 +24205,8 @@
|
||||
QUnit.module('lodash.unescape');
|
||||
|
||||
(function() {
|
||||
var escaped = '&<>"'\/',
|
||||
unescaped = '&<>"\'\/';
|
||||
var escaped = '&<>"'/',
|
||||
unescaped = '&<>"\'/';
|
||||
|
||||
escaped += escaped;
|
||||
unescaped += unescaped;
|
||||
|
||||
Reference in New Issue
Block a user