BlueWallet/App.test.js
Sergey Tsegelnyk f1d68e53e6 prettier
2018-03-18 03:11:54 +00:00

18 lines
423 B
JavaScript

/* global describe, it */
import { LegacyWallet } from './class';
let assert = require('assert');
describe('unit - LegacyWallet', function() {
it('serialize and unserialize work correctly', () => {
let a = new LegacyWallet();
a.setLabel('my1');
let key = JSON.stringify(a);
let b = LegacyWallet.fromJson(key);
assert(key === JSON.stringify(b));
assert.equal(key, JSON.stringify(b));
});
});