mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #497 from sharelatex/as-naming-consistency
Include snake_case named file in frontend tests
This commit is contained in:
commit
61648e1f19
1 changed files with 3 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
||||||
# Set up requirejs to load the tests
|
# Set up requirejs to load the tests
|
||||||
# Uses heuristic that test filenames end with Tests.js
|
# Uses heuristic that test filenames end with Tests.js (existing frontend code)
|
||||||
|
# or _tests.js (newer frontend code)
|
||||||
tests = []
|
tests = []
|
||||||
for file of window.__karma__.files
|
for file of window.__karma__.files
|
||||||
if window.__karma__.files.hasOwnProperty(file)
|
if window.__karma__.files.hasOwnProperty(file)
|
||||||
if /test\/unit_frontend\/js.+Tests.js$/.test(file)
|
if /test\/unit_frontend\/js.+(_t|T)ests\.js$/.test(file)
|
||||||
tests.push(file)
|
tests.push(file)
|
||||||
|
|
||||||
requirejs.config
|
requirejs.config
|
||||||
|
|
Loading…
Reference in a new issue