Skip to content
Snippets Groups Projects
Commit fc48bdf7 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

test: use snapshot for host-rules

parent 89ad6401
No related merge requests found
......@@ -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",
}
`;
......@@ -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();
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment