aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/migrations/template-test.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-04-10 04:56:59 +0800
committerGitHub <noreply@github.com>2018-04-10 04:56:59 +0800
commitdf1f891585dc41a7d725d592902a84e432e66dc4 (patch)
treee450c931e8d6d4a1277fd57e330fa8882d7cc93f /test/unit/migrations/template-test.js
parent931ce120737210cbbf6736b454580ac0610f527a (diff)
parent305f5f0034f347ee3eacbc4e6ef41817c1de9ab2 (diff)
downloadtangerine-wallet-browser-df1f891585dc41a7d725d592902a84e432e66dc4.tar.gz
tangerine-wallet-browser-df1f891585dc41a7d725d592902a84e432e66dc4.tar.zst
tangerine-wallet-browser-df1f891585dc41a7d725d592902a84e432e66dc4.zip
Merge branch 'master' into i3621-LogoPerformance
Diffstat (limited to 'test/unit/migrations/template-test.js')
-rw-r--r--test/unit/migrations/template-test.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/unit/migrations/template-test.js b/test/unit/migrations/template-test.js
new file mode 100644
index 000000000..35060e2fe
--- /dev/null
+++ b/test/unit/migrations/template-test.js
@@ -0,0 +1,17 @@
+const assert = require('assert')
+const migrationTemplate = require('../../../app/scripts/migrations/template')
+const properTime = (new Date()).getTime()
+const storage = {
+ meta: {},
+ data: {},
+}
+
+describe('storage is migrated successfully', () => {
+ it('should work', (done) => {
+ migrationTemplate.migrate(storage)
+ .then((migratedData) => {
+ assert.equal(migratedData.meta.version, 0)
+ done()
+ }).catch(done)
+ })
+})