mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
add docs
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
--slow 500
|
||||
--require ts-node/register
|
||||
--watch-extensions ts
|
||||
./test/*.{ts,js} ./test/api/index.ts
|
||||
./test/*.{ts,js}
|
||||
@@ -57,10 +57,11 @@ describe('RippleAPI [Test Runner]', function() {
|
||||
})
|
||||
}
|
||||
|
||||
// Report any missing tests.
|
||||
const allTestedMethods = new Set(allTestSuites.map(s => s.name));
|
||||
for (const methodName of allPublicMethods) {
|
||||
if (!allTestedMethods.has(methodName)) {
|
||||
// TODO: Once migration is complete, remove this filter so that missing tests are reported.
|
||||
// TODO: Once migration is complete, remove `.skip()` so that missing tests are reported as failures.
|
||||
it.skip(`${methodName} - no test suite found`, () => {
|
||||
throw new Error(
|
||||
`Test file not found! Create file "test/api/${methodName}/index.ts".`
|
||||
|
||||
Reference in New Issue
Block a user