-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize test files, use express-handlebars and json to render test c…
…ases. (#1441) * remove pp2002, closes #1431 * remove profile-amended * fix test * remove unused test file * split profiles into track folders * make track/profiles work * Revert "make track/profiles work" This reverts commit f52af89. * Revert "Revert "make track/profiles work"" This reverts commit 14e624b. * add all profiles under track * align profiles * Demo for test with handlebar template * revert package.json * add test case that fail, the new test case extends from current data. * extend configs * test: extend check to all rules for good documents. Add DNOTE and NOTE good data * test: add all good profile documents * remove files * ad * add tests for FPWD * fix test and lint * add pre-commit spelling check, fix spelling and lint * fix REC good test * commit dl.js without formatting * fix test * add more test cases for FPWD * add test case for FPWD * add deliverer id data * add cases for FPWD * finish FPWD tests * fix tests * resolve todos in FPWD * Update test/data/TR/Recommendation/FPWD.js Co-authored-by: Denis Ah-Kang <[email protected]> * Update test/rules.js Co-authored-by: Denis Ah-Kang <[email protected]> * fix circular dependency * add tests for all profiles, extract common data * fix test * fix test * optimize tests * update cspell config * fix mock start and stop * disasble mock for good documents at least * fix test for good document * try to fix test * restore nock * hide nock * restore nock * ignore nock, leave test for wrongPPFromCharter only * ignore nock, leave test for noDisclosures only * ignore nock, leave test for noDisclosures only * restore NO_THROTTLE and nock * add allowUnmocked to nock * fix fake request * fix profile finder * add more nock mock APIs * remove desscibe only * remove console.log * no longer rely on util.profiles * fix mock * remove commented code * env var is passed in packages.json * reduce mocha timeout + remove unnecessary callbacks * fix comments * clean up old test suite Co-authored-by: Denis Ah-Kang <[email protected]> Co-authored-by: Denis Ah-Kang <[email protected]>
- Loading branch information
1 parent
9a78b3f
commit e95ca88
Showing
222 changed files
with
5,662 additions
and
34,402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
npx lint-staged && npm run spelling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.