Delete unused transaction history test state (#8769)

feature/default_network_editable
Erik Marks 4 years ago committed by GitHub
parent 316bf17143
commit fdb3070fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2100
      test/data/mock-tx-history.json
  2. 2809
      test/data/v17-long-history.json
  3. 4
      test/unit/app/controllers/transactions/tx-state-history-helpers-test.js

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -5,7 +5,7 @@ import {
replayHistory, replayHistory,
generateHistoryEntry, generateHistoryEntry,
} from '../../../../../app/scripts/controllers/transactions/lib/tx-state-history-helpers' } from '../../../../../app/scripts/controllers/transactions/lib/tx-state-history-helpers'
import testVault from '../../../../data/v17-long-history.json' import testData from '../../../../data/mock-tx-history.json'
describe('Transaction state history helper', function () { describe('Transaction state history helper', function () {
describe('#snapshotFromTxMeta', function () { describe('#snapshotFromTxMeta', function () {
@ -33,7 +33,7 @@ describe('Transaction state history helper', function () {
describe('#migrateFromSnapshotsToDiffs', function () { describe('#migrateFromSnapshotsToDiffs', function () {
it('migrates history to diffs and can recover original values', function () { it('migrates history to diffs and can recover original values', function () {
testVault.data.TransactionController.transactions.forEach((tx) => { testData.TransactionsController.transactions.forEach((tx) => {
const newHistory = migrateFromSnapshotsToDiffs(tx.history) const newHistory = migrateFromSnapshotsToDiffs(tx.history)
newHistory.forEach((newEntry, index) => { newHistory.forEach((newEntry, index) => {
if (index === 0) { if (index === 0) {

Loading…
Cancel
Save