mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Delete unused transaction history test state (#8769)
This commit is contained in:
parent
316bf17143
commit
fdb3070fce
2100
test/data/mock-tx-history.json
Normal file
2100
test/data/mock-tx-history.json
Normal file
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,
|
||||
generateHistoryEntry,
|
||||
} 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('#snapshotFromTxMeta', function () {
|
||||
@ -33,7 +33,7 @@ describe('Transaction state history helper', function () {
|
||||
|
||||
describe('#migrateFromSnapshotsToDiffs', 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)
|
||||
newHistory.forEach((newEntry, index) => {
|
||||
if (index === 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user