fix: resolves TODOs in ./src (#1623)

fix: resolves TODOs in ./src
This commit is contained in:
Nathan Nichols
2021-10-15 17:18:22 -05:00
committed by GitHub
parent b71147416c
commit 6e57b4e2ee
32 changed files with 136 additions and 610 deletions

View File

@@ -4,6 +4,8 @@ import path from 'path'
import { Client } from 'xrpl-local'
import { XrplError } from '../src/errors'
/**
* Client Test Runner.
*
@@ -27,10 +29,10 @@ describe('Client', function () {
)
for (const methodName of allPublicMethods) {
if (!allTestedMethods.has(methodName)) {
// TODO: Once migration is complete, remove `.skip()` so that missing tests are reported as failures.
// eslint-disable-next-line mocha/no-skipped-tests -- See above TODO
/** TODO: Remove the skip, rename methods. */
// eslint-disable-next-line mocha/no-skipped-tests -- skip these tests for now.
it.skip(`${methodName} - no test suite found`, function () {
throw new Error(
throw new XrplError(
`Test file not found! Create file "test/client/${methodName}.ts".`,
)
})