From bd1bec4197098cf8233b121b01c09bdbd373562a Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 5 Apr 2020 19:20:12 +0200 Subject: [PATCH] test: coverage --- lib/workers/repository/updates/flatten.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/workers/repository/updates/flatten.spec.ts b/lib/workers/repository/updates/flatten.spec.ts index dbd222c33b67345..3f1196f1060a148 100644 --- a/lib/workers/repository/updates/flatten.spec.ts +++ b/lib/workers/repository/updates/flatten.spec.ts @@ -38,6 +38,10 @@ describe('workers/repository/updates/flatten', () => { updateTypes: ['pin'], updates: [{ newValue: '2.0.0' }], }, + { + depName: 'a', + updates: [{ newName: 'b' }], + }, ], }, { @@ -73,7 +77,7 @@ describe('workers/repository/updates/flatten', () => { ], }; const res = flattenUpdates(config, packageFiles); - expect(res).toHaveLength(9); + expect(res).toHaveLength(10); expect( res.filter(r => r.updateType === 'lockFileMaintenance') ).toHaveLength(2);