fix: renames verify... methods to validate... (#1624)

* rename verify -> validate

* fix imports

* run eslint --fix on test/
This commit is contained in:
Mayukha Vadari
2021-09-16 21:14:22 -04:00
parent eb0445817e
commit 13c52859eb
51 changed files with 423 additions and 461 deletions

View File

@@ -1,10 +1,8 @@
import { assert } from 'chai'
import { validateCheckCancel, validate } from 'xrpl-local'
import { ValidationError } from 'xrpl-local/common/errors'
import { verify } from '../../src/models/transactions'
import { verifyCheckCancel } from '../../src/models/transactions/checkCancel'
/**
* CheckCancel Transaction Verification Testing.
*
@@ -19,8 +17,8 @@ describe('CheckCancel', function () {
'49647F0D748DC3FE26BDACBC57F251AADEFFF391403EC9BF87C97F67E9977FB0',
} as any
assert.doesNotThrow(() => verifyCheckCancel(validCheckCancel))
assert.doesNotThrow(() => verify(validCheckCancel))
assert.doesNotThrow(() => validateCheckCancel(validCheckCancel))
assert.doesNotThrow(() => validate(validCheckCancel))
})
it(`throws w/ invalid CheckCancel`, function () {
@@ -31,12 +29,12 @@ describe('CheckCancel', function () {
} as any
assert.throws(
() => verifyCheckCancel(invalidCheckID),
() => validateCheckCancel(invalidCheckID),
ValidationError,
'CheckCancel: invalid CheckID',
)
assert.throws(
() => verify(invalidCheckID),
() => validate(invalidCheckID),
ValidationError,
'CheckCancel: invalid CheckID',
)