mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Remove unnecessary template unit test.
Former-commit-id: 42ea5be4168d4db818ec93a8f6c61c51905127c7
This commit is contained in:
12
test/test.js
12
test/test.js
@@ -105,16 +105,6 @@
|
|||||||
QUnit.module('lodash');
|
QUnit.module('lodash');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
// ensure this test is executed before any other template tests to avoid false positives
|
|
||||||
test('should initialize `reEvaluateDelimiter` (test with production build)', function() {
|
|
||||||
var data = { 'a': [1, 2] },
|
|
||||||
settings = _.templateSettings;
|
|
||||||
|
|
||||||
_.templateSettings = { 'interpolate': /\{\{(.+?)\}\}/g };
|
|
||||||
equal(_.template('{{ a.join(",") }}', data), '1,2');
|
|
||||||
_.templateSettings = settings;
|
|
||||||
});
|
|
||||||
|
|
||||||
test('supports loading lodash.js as the "lodash" module', function() {
|
test('supports loading lodash.js as the "lodash" module', function() {
|
||||||
if (window.document && window.require) {
|
if (window.document && window.require) {
|
||||||
equal((lodashModule || {}).moduleName, 'lodash');
|
equal((lodashModule || {}).moduleName, 'lodash');
|
||||||
@@ -1509,7 +1499,7 @@
|
|||||||
|
|
||||||
equal(compiled(data), '1');
|
equal(compiled(data), '1');
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should work when passing `options.variable`', function() {
|
test('should work when passing `options.variable`', function() {
|
||||||
var compiled = _.template(
|
var compiled = _.template(
|
||||||
'<% _.forEach( data.a, function( value ) { %>' +
|
'<% _.forEach( data.a, function( value ) { %>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user