run prettier for files faining in CI
This commit is contained in:
parent
5f1f5f5387
commit
e31ef44d76
|
@ -5,12 +5,13 @@ describe('Store actions utils > getNewTxNonce', () => {
|
||||||
// Given
|
// Given
|
||||||
const txNonce = '45'
|
const txNonce = '45'
|
||||||
const lastTx = {
|
const lastTx = {
|
||||||
nonce: 44
|
nonce: 44,
|
||||||
}
|
}
|
||||||
const safeInstance = {
|
const safeInstance = {
|
||||||
nonce: () => Promise.resolve({
|
nonce: () =>
|
||||||
toString: () => Promise.resolve('45')
|
Promise.resolve({
|
||||||
})
|
toString: () => Promise.resolve('45'),
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// When
|
// When
|
||||||
|
@ -24,12 +25,13 @@ describe('Store actions utils > getNewTxNonce', () => {
|
||||||
// Given
|
// Given
|
||||||
const txNonce = ''
|
const txNonce = ''
|
||||||
const lastTx = {
|
const lastTx = {
|
||||||
nonce: 44
|
nonce: 44,
|
||||||
}
|
}
|
||||||
const safeInstance = {
|
const safeInstance = {
|
||||||
nonce: () => Promise.resolve({
|
nonce: () =>
|
||||||
toString: () => Promise.resolve('45')
|
Promise.resolve({
|
||||||
})
|
toString: () => Promise.resolve('45'),
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// When
|
// When
|
||||||
|
@ -44,9 +46,10 @@ describe('Store actions utils > getNewTxNonce', () => {
|
||||||
const txNonce = ''
|
const txNonce = ''
|
||||||
const lastTx = null
|
const lastTx = null
|
||||||
const safeInstance = {
|
const safeInstance = {
|
||||||
nonce: () => Promise.resolve({
|
nonce: () =>
|
||||||
toString: () => Promise.resolve('45')
|
Promise.resolve({
|
||||||
})
|
toString: () => Promise.resolve('45'),
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
|
|
||||||
// When
|
// When
|
||||||
|
@ -61,13 +64,14 @@ describe('Store actions utils > shouldExecuteTransaction', () => {
|
||||||
it(`should return false if there's a previous tx pending to be executed`, async () => {
|
it(`should return false if there's a previous tx pending to be executed`, async () => {
|
||||||
// Given
|
// Given
|
||||||
const safeInstance = {
|
const safeInstance = {
|
||||||
getThreshold: () => Promise.resolve({
|
getThreshold: () =>
|
||||||
toNumber: () => 1
|
Promise.resolve({
|
||||||
})
|
toNumber: () => 1,
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
const nonce = '1'
|
const nonce = '1'
|
||||||
const lastTx = {
|
const lastTx = {
|
||||||
isExecuted: false
|
isExecuted: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
// When
|
// When
|
||||||
|
@ -80,13 +84,14 @@ describe('Store actions utils > shouldExecuteTransaction', () => {
|
||||||
it(`should return false if threshold is greater than 1`, async () => {
|
it(`should return false if threshold is greater than 1`, async () => {
|
||||||
// Given
|
// Given
|
||||||
const safeInstance = {
|
const safeInstance = {
|
||||||
getThreshold: () => Promise.resolve({
|
getThreshold: () =>
|
||||||
toNumber: () => 2
|
Promise.resolve({
|
||||||
})
|
toNumber: () => 2,
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
const nonce = '1'
|
const nonce = '1'
|
||||||
const lastTx = {
|
const lastTx = {
|
||||||
isExecuted: true
|
isExecuted: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// When
|
// When
|
||||||
|
@ -99,13 +104,14 @@ describe('Store actions utils > shouldExecuteTransaction', () => {
|
||||||
it(`should return true is threshold is 1 and previous tx is executed`, async () => {
|
it(`should return true is threshold is 1 and previous tx is executed`, async () => {
|
||||||
// Given
|
// Given
|
||||||
const safeInstance = {
|
const safeInstance = {
|
||||||
getThreshold: () => Promise.resolve({
|
getThreshold: () =>
|
||||||
toNumber: () => 1
|
Promise.resolve({
|
||||||
})
|
toNumber: () => 1,
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
const nonce = '1'
|
const nonce = '1'
|
||||||
const lastTx = {
|
const lastTx = {
|
||||||
isExecuted: true
|
isExecuted: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
// When
|
// When
|
||||||
|
|
Loading…
Reference in New Issue