run prettier for files faining in CI

This commit is contained in:
nicosampler 2020-07-30 15:32:03 -03:00
parent 5f1f5f5387
commit e31ef44d76
2 changed files with 30 additions and 24 deletions

View File

@ -1,4 +1,4 @@
// //
import { getAccountsFrom, getNamesFrom, getThresholdFrom } from './safeDataExtractor' import { getAccountsFrom, getNamesFrom, getThresholdFrom } from './safeDataExtractor'
describe('Test JS', () => { describe('Test JS', () => {

View File

@ -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