tests: add all timing edge cases #158
No reviewers
Labels
No labels
bootcamp
bug
codebase
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
high priority
invalid
javascript
outdated
question
typescript
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/dining-api!158
Loading…
Reference in a new issue
No description provided.
Delete branch "tests/all-timing-edge-cases"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Adds everything mentioned in https://github.com/ScottyLabs/dining-api/wiki/Timing-Cases.

This does not pass with the code as-is, but should probably be merged before the refactor PR
I mocked out the Axios GET endpoint and replaced it with partly dynamically generated HTML files meant to simulate the real dining pages. A lot of this has been abstracted away (see
mockAxios.tsandmockTimings.ts) with the goal of cleaner tests like the following:With these added tests, we can be more confident that future code changes won't break existing parsing functionality.
Type of change
How Has This Been Tested?
Test Configuration:
Checklist:
The latest updates on your projects. Learn more about Vercel for Git ↗︎
the test code is a bit unreadable at the moment... I'll fix it soonFixed
I see no issues. Thanks for your PR.