Skip to content

Commit

Permalink
Cleanup test directory (#2937)
Browse files Browse the repository at this point in the history
Moves files around and renames some so that the structure is cleaner and
more consistent
  • Loading branch information
rejas authored Oct 7, 2022
1 parent 21ae79b commit a328ce5
Show file tree
Hide file tree
Showing 48 changed files with 739 additions and 825 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Special thanks to: @rejas, @sdetweil

### Updated

- Cleaned up test directory
- Updated e2e tests (moved `done()` in helper functions) and use es6 syntax in all tests
- Updated da translation
- Rework weather module
Expand Down
3 changes: 2 additions & 1 deletion js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function Server(config, callback) {

app.use("/js", express.static(__dirname));

const directories = ["/config", "/css", "/fonts", "/modules", "/vendor", "/translations", "/tests/configs"];
// TODO add tests directory only when running tests?
const directories = ["/config", "/css", "/fonts", "/modules", "/vendor", "/translations", "/tests/configs", "/tests/mocks"];
for (const directory of directories) {
app.use(directory, express.static(path.resolve(global.root_path + directory)));
}
Expand Down
Loading

0 comments on commit a328ce5

Please sign in to comment.