mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-14 08:36:26 +00:00
test: use snapshot for host-rules
This commit is contained in:
parent
89ad6401d9
commit
fc48bdf738
2 changed files with 11 additions and 1 deletions
|
@ -35,3 +35,13 @@ Array [
|
||||||
"yet.another.local.registry",
|
"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",
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
|
@ -205,7 +205,7 @@ describe(getName(), () => {
|
||||||
};
|
};
|
||||||
add(hostRule);
|
add(hostRule);
|
||||||
expect(findAll({ hostType: 'nuget' })).toHaveLength(1);
|
expect(findAll({ hostType: 'nuget' })).toHaveLength(1);
|
||||||
expect(findAll({ hostType: 'nuget' })[0]).toMatchObject(hostRule);
|
expect(findAll({ hostType: 'nuget' })[0]).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue