Ghost/ghost/tpl/test/lodash.test.js
Hannah Wolfe 1a0436b540 Added ts-ignore for lodash interpolate
- ts complains the value may be undefined but in reality it never is
- plus we don't care about this error in this context as the test is checking that the value is set to its default
2021-06-09 12:00:07 +01:00

14 lines
385 B
JavaScript

// Switch these lines once there are useful utils
// const testUtils = require('./utils');
require('./utils');
describe('Lodash Template', function () {
it('Does not get clobbered by this lib', function () {
require('../lib/tpl');
let _ = require('lodash');
// @ts-ignore
_.templateSettings.interpolate.should.eql(/<%=([\s\S]+?)%>/g);
});
});