Skip to content

Commit fe6223f

Browse files
committed
test(eejs-blocks): update module stubs for new specifiers
Source files no longer require 'ep_etherpad-lite/node/eejs/' (trailing slash) or 'ep_etherpad-lite/node_modules/log4js'. Update the test's Module._resolveFilename stubs to match the new specifiers: 'ep_etherpad-lite/node/eejs' (no slash) and 'log4js'.
1 parent 5263c21 commit fe6223f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/eejs-blocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const Module = require('module');
66
// Stub out ep_etherpad-lite modules that eejs-blocks.js require()s so we can
77
// load the helper without a full Etherpad runtime.
88
const stubs = new Map([
9-
['ep_etherpad-lite/node/eejs/', {
9+
['ep_etherpad-lite/node/eejs', {
1010
require: (templatePath) => `<!--rendered:${templatePath}-->`,
1111
}],
12-
['ep_etherpad-lite/node_modules/log4js', {
12+
['log4js', {
1313
getLogger: () => {
1414
const calls = [];
1515
const logger = {

0 commit comments

Comments
 (0)