diff --git a/lib/util/__snapshots__/host-rules.spec.ts.snap b/lib/util/__snapshots__/host-rules.spec.ts.snap index 8bf8dfa34b..615196fffe 100644 --- a/lib/util/__snapshots__/host-rules.spec.ts.snap +++ b/lib/util/__snapshots__/host-rules.spec.ts.snap @@ -35,3 +35,13 @@ Array [ "yet.another.local.registry", ] `; + +exports[`util/host-rules findAll() needs exact host matches 1`] = ` +Object { + "hostName": "nuget.org", + "hostType": "nuget", + "password": "p4$$w0rd", + "resolvedHost": "nuget.org", + "username": "root", +} +`; diff --git a/lib/util/host-rules.spec.ts b/lib/util/host-rules.spec.ts index 2593122122..0d8d3af789 100644 --- a/lib/util/host-rules.spec.ts +++ b/lib/util/host-rules.spec.ts @@ -205,7 +205,7 @@ describe(getName(), () => { }; add(hostRule); expect(findAll({ hostType: 'nuget' })).toHaveLength(1); - expect(findAll({ hostType: 'nuget' })[0]).toMatchObject(hostRule); + expect(findAll({ hostType: 'nuget' })[0]).toMatchSnapshot(); }); }); });