Skip to content

Commit

Permalink
Removed test for hacky require
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Nov 24, 2019
1 parent 18c03ab commit a8be7ec
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1242,19 +1242,6 @@ suite('comments', function () {
});
});

suite('require', function () {

// Only works with inline/preprocessor includes
test('allow ejs templates to be required as node modules', function () {
var file = 'test/fixtures/include_preprocessor.ejs';
var template = require(__dirname + '/fixtures/menu_preprocessor.ejs');
if (!process.env.running_under_istanbul) {
assert.equal(template({filename: file, pets: users}),
fixture('menu_preprocessor.html'));
}
});
});

suite('test fileloader', function () {

var myFileLoad = function (filePath) {
Expand Down

0 comments on commit a8be7ec

Please sign in to comment.