diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-10-03 05:11:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 05:11:50 +0800 |
commit | b7c195160238119291ce62b01db1c8f7e4f94568 (patch) | |
tree | 01e7afaf1ae3e374a1dd27e8ee564f3370d4463b /test | |
parent | bf390bd63d7642d5a4975c572eb928252122a79b (diff) | |
parent | 167ad729fdd4fa23a2ec66e648652f3379a2bb51 (diff) | |
download | tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.tar tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.tar.gz tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.tar.bz2 tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.tar.lz tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.tar.xz tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.tar.zst tangerine-wallet-browser-b7c195160238119291ce62b01db1c8f7e4f94568.zip |
Merge pull request #2260 from MetaMask/history-notes
transaction - provide notes for history
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/tx-state-history-helper.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/unit/tx-state-history-helper.js b/test/unit/tx-state-history-helper.js index e5075af88..79ee26d6e 100644 --- a/test/unit/tx-state-history-helper.js +++ b/test/unit/tx-state-history-helper.js @@ -23,16 +23,16 @@ describe('tx-state-history-helper', function () { it('replaying history does not mutate the original obj', function () { const initialState = { test: true, message: 'hello', value: 1 } - const diff1 = { + const diff1 = [{ "op": "replace", "path": "/message", "value": "haay", - } - const diff2 = { + }] + const diff2 = [{ "op": "replace", "path": "/value", "value": 2, - } + }] const history = [initialState, diff1, diff2] const beforeStateSnapshot = JSON.stringify(initialState) @@ -42,4 +42,5 @@ describe('tx-state-history-helper', function () { assert.notEqual(initialState, latestState, 'initial state is not the same obj as the latest state') assert.equal(beforeStateSnapshot, afterStateSnapshot, 'initial state is not modified during run') }) + }) |