chore(tests): make it more obvious that silence should use am.uri, not am.publicURI

This commit is contained in:
Łukasz Mierzwa
2018-09-18 21:27:45 +01:00
parent f049b97ba1
commit f55345437a

View File

@@ -61,6 +61,7 @@ beforeEach(() => {
{
name: "default",
uri: "file:///mock",
publicURI: "http://example.com",
error: ""
}
]
@@ -175,6 +176,7 @@ describe("<Silence />", () => {
expect(am).toEqual({
name: "default",
uri: "file:///mock",
publicURI: "http://example.com",
error: ""
});
});
@@ -204,7 +206,7 @@ describe("<SilenceDetails />", () => {
expect(endsAt.html()).toMatch(/badge-danger/);
});
it("id links to Alertmanager silence view", () => {
it("id links to Alertmanager silence view via alertmanager.uri", () => {
const tree = ShallowSilenceDetails();
const link = tree.find("a");
expect(link.props().href).toBe(