From a5239d0c2782c9e952b45b52251ed5dbf47f640d Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Mon, 28 Mar 2022 07:48:30 +0000 Subject: [PATCH] db: Removed unused latestVersion --- core/db.mjs | 1 - test/application.test.mjs | 1 - test/db.test.mjs | 2 -- 3 files changed, 4 deletions(-) diff --git a/core/db.mjs b/core/db.mjs index c1be18b..8ba0a3f 100644 --- a/core/db.mjs +++ b/core/db.mjs @@ -89,7 +89,6 @@ export default function GetDB(config, log, orgFilename = 'db.json') { defaults(db.data.core[name], { active: '', latestInstalled: '', - latestVersion: '', updater: '', versions: [], }) diff --git a/test/application.test.mjs b/test/application.test.mjs index 14180fe..e0833e5 100644 --- a/test/application.test.mjs +++ b/test/application.test.mjs @@ -42,7 +42,6 @@ t.describe('constructor()', function() { assert.ok(ctx.db.data.core.test.versions) assert.strictEqual(ctx.db.data.core.test.active, '') assert.strictEqual(ctx.db.data.core.test.latestInstalled, '') - assert.strictEqual(ctx.db.data.core.test.latestVersion, '') }) t.test('should keep config and other of itself', function() { diff --git a/test/db.test.mjs b/test/db.test.mjs index 4064746..c44c9dc 100644 --- a/test/db.test.mjs +++ b/test/db.test.mjs @@ -150,7 +150,6 @@ t.test('Should support adding an application with defaults', async function() { assert.ok(db.data.core.app.versions) assert.strictEqual(db.data.core.app.active, '') assert.strictEqual(db.data.core.app.latestInstalled, '') - assert.strictEqual(db.data.core.app.latestVersion, '') assert.notOk(db.data.core.herpderp) @@ -160,7 +159,6 @@ t.test('Should support adding an application with defaults', async function() { assert.ok(db.data.core.herpderp.versions) assert.strictEqual(db.data.core.herpderp.active, '') assert.strictEqual(db.data.core.herpderp.latestInstalled, '') - assert.strictEqual(db.data.core.herpderp.latestVersion, '') }) t.test('Should support reading from db', async function() {