0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 06:32:37 +00:00

process.chdir in app.js.

Everything works, no need for path.resolve. All tests pass.
This commit is contained in:
Trevor Buckner
2022-01-29 23:53:30 -05:00
parent e4c2ce6a8c
commit d7aa4afa60
4 changed files with 13 additions and 23 deletions

View File

@@ -21,9 +21,7 @@ describe('Tests for static pages', ()=>{
return app.get('/faq').expect(200);
});
// FIXME: robots.txt file can't be properly loaded under testing environment,
// most likely due to __dirname being different from what is expected
it.skip('robots.txt works', ()=>{
it('robots.txt works', ()=>{
return app.get('/robots.txt').expect(200);
});
});