tests: Serve all of `src/tests/frontend/`, not just specs

pull/5300/head
Richard Hansen 2021-11-23 21:06:16 -05:00
parent 89fe40e080
commit d3427240c6
1 changed files with 2 additions and 2 deletions

View File

@ -166,8 +166,8 @@ const minify = async (req, res) => {
filename = path.join('../node_modules/', library, libraryPath);
}
}
const [, spec] = /^plugins\/ep_etherpad-lite\/(tests\/frontend\/specs\/.*)/.exec(filename) || [];
if (spec != null) filename = `../${spec}`;
const [, testf] = /^plugins\/ep_etherpad-lite\/(tests\/frontend\/.*)/.exec(filename) || [];
if (testf != null) filename = `../${testf}`;
const contentType = mime.lookup(filename);