mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-02 10:05:49 +00:00
style: yarn format (run prettier) (#1327)
This commit is contained in:
@@ -100,8 +100,8 @@ export default <TestSuite>{
|
||||
const response = await api.getTransactions(address, options)
|
||||
hack(response)
|
||||
assert.strictEqual(response.length, 10)
|
||||
response.forEach(t => assert(t.type === 'payment' || t.type === 'order'))
|
||||
response.forEach(t => assert(t.outcome.result === 'tesSUCCESS'))
|
||||
response.forEach((t) => assert(t.type === 'payment' || t.type === 'order'))
|
||||
response.forEach((t) => assert(t.outcome.result === 'tesSUCCESS'))
|
||||
},
|
||||
|
||||
'filters for incoming': async (api, address) => {
|
||||
@@ -115,8 +115,8 @@ export default <TestSuite>{
|
||||
const response = await api.getTransactions(address, options)
|
||||
hack(response)
|
||||
assert.strictEqual(response.length, 10)
|
||||
response.forEach(t => assert(t.type === 'payment' || t.type === 'order'))
|
||||
response.forEach(t => assert(t.outcome.result === 'tesSUCCESS'))
|
||||
response.forEach((t) => assert(t.type === 'payment' || t.type === 'order'))
|
||||
response.forEach((t) => assert(t.outcome.result === 'tesSUCCESS'))
|
||||
},
|
||||
|
||||
// this is the case where core.RippleError just falls
|
||||
@@ -162,7 +162,7 @@ export default <TestSuite>{
|
||||
// the expected response. Long term, a better approach would be to use/test the json
|
||||
// format responses, instead of the binary.
|
||||
function hack(response) {
|
||||
response.forEach(element => {
|
||||
response.forEach((element) => {
|
||||
element.outcome.timestamp = '2019-04-01T07:39:01.000Z'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user