From a8be7ecb8a47fd8e58f0a30a7ae0c3f81eefef14 Mon Sep 17 00:00:00 2001 From: mde Date: Sat, 23 Nov 2019 16:38:10 -0800 Subject: [PATCH] Removed test for hacky require --- test/ejs.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/ejs.js b/test/ejs.js index fb154221..d4ac6723 100755 --- a/test/ejs.js +++ b/test/ejs.js @@ -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) {