Adds @xrplf prettier config (#1598)

* build: new prettier config
This commit is contained in:
Nathan Nichols
2021-09-03 15:41:20 -07:00
committed by Mayukha Vadari
parent 8c5bc22317
commit e200de3073
263 changed files with 10185 additions and 10133 deletions

View File

@@ -1,37 +1,37 @@
import { assert } from "chai";
import { assert } from 'chai'
import { ValidationError } from "xrpl-local/common/errors";
import { ValidationError } from 'xrpl-local/common/errors'
import { verifyCheckCancel } from "../../src/models/transactions/checkCancel";
import { verifyCheckCancel } from '../../src/models/transactions/checkCancel'
/**
* CheckCancel Transaction Verification Testing.
*
* Providing runtime verification testing for each specific transaction type.
*/
describe("CheckCancel", function () {
describe('CheckCancel', function () {
it(`verifies valid CheckCancel`, function () {
const validCheckCancel = {
Account: "rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo",
TransactionType: "CheckCancel",
Account: 'rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo',
TransactionType: 'CheckCancel',
CheckID:
"49647F0D748DC3FE26BDACBC57F251AADEFFF391403EC9BF87C97F67E9977FB0",
} as any;
'49647F0D748DC3FE26BDACBC57F251AADEFFF391403EC9BF87C97F67E9977FB0',
} as any
assert.doesNotThrow(() => verifyCheckCancel(validCheckCancel));
});
assert.doesNotThrow(() => verifyCheckCancel(validCheckCancel))
})
it(`throws w/ invalid CheckCancel`, function () {
const invalidCheckID = {
Account: "rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo",
TransactionType: "CheckCancel",
Account: 'rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo',
TransactionType: 'CheckCancel',
CheckID: 4964734566545678,
} as any;
} as any
assert.throws(
() => verifyCheckCancel(invalidCheckID),
ValidationError,
"CheckCancel: invalid CheckID"
);
});
});
'CheckCancel: invalid CheckID',
)
})
})