mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Fix #547 - _.templateSettings is unchanged by custom settings.
This commit is contained in:
@@ -186,4 +186,10 @@ $(document).ready(function() {
|
||||
strictEqual(_.template(s)(data), 'x')
|
||||
});
|
||||
|
||||
test('#547 - _.templateSettings is unchanged by custom settings.', function() {
|
||||
ok(!_.templateSettings.variable);
|
||||
_.template('', {}, {variable: 'x'});
|
||||
ok(!_.templateSettings.variable);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user