mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(tests): alert.alertmanager doesn't have uri key
This commit is contained in:
@@ -16,7 +16,6 @@ const mockAfterUpdate = jest.fn();
|
||||
|
||||
const alertmanager = {
|
||||
name: "default",
|
||||
uri: "http://localhost",
|
||||
state: "suppressed",
|
||||
startsAt: "2000-01-01T10:00:00Z",
|
||||
endsAt: "0001-01-01T00:00:00Z",
|
||||
|
||||
@@ -11,7 +11,6 @@ const Annotation = PropTypes.exact({
|
||||
|
||||
const APIAlertAlertmanagerState = PropTypes.exact({
|
||||
name: PropTypes.string.isRequired,
|
||||
uri: PropTypes.string.isRequired,
|
||||
state: AlertState.isRequired,
|
||||
startsAt: PropTypes.string.isRequired,
|
||||
endsAt: PropTypes.string.isRequired,
|
||||
|
||||
@@ -14,7 +14,6 @@ const MockAlert = (annotations, labels, state) => ({
|
||||
alertmanager: [
|
||||
{
|
||||
name: "default",
|
||||
uri: "file:///mock",
|
||||
state: "active",
|
||||
startsAt: "2018-08-14T17:36:40.017867056Z",
|
||||
endsAt: "0001-01-01T00:00:00Z",
|
||||
|
||||
Reference in New Issue
Block a user