mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
tests: Serve all of src/tests/frontend/
, not just specs
This commit is contained in:
parent
89fe40e080
commit
d3427240c6
1 changed files with 2 additions and 2 deletions
|
@ -166,8 +166,8 @@ const minify = async (req, res) => {
|
||||||
filename = path.join('../node_modules/', library, libraryPath);
|
filename = path.join('../node_modules/', library, libraryPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const [, spec] = /^plugins\/ep_etherpad-lite\/(tests\/frontend\/specs\/.*)/.exec(filename) || [];
|
const [, testf] = /^plugins\/ep_etherpad-lite\/(tests\/frontend\/.*)/.exec(filename) || [];
|
||||||
if (spec != null) filename = `../${spec}`;
|
if (testf != null) filename = `../${testf}`;
|
||||||
|
|
||||||
const contentType = mime.lookup(filename);
|
const contentType = mime.lookup(filename);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue