db: Removed unused latestVersion
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-03-28 07:48:30 +00:00
parent 46386a13b3
commit a5239d0c27
3 changed files with 0 additions and 4 deletions

View file

@ -89,7 +89,6 @@ export default function GetDB(config, log, orgFilename = 'db.json') {
defaults(db.data.core[name], {
active: '',
latestInstalled: '',
latestVersion: '',
updater: '',
versions: [],
})

View file

@ -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() {

View file

@ -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() {