Skip to content

Commit

Permalink
Update unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed May 14, 2020
1 parent c094dd9 commit 6bb5519
Showing 1 changed file with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,38 @@ describe('monitor status alert type', () => {
});

describe('initMonitorStatusAlertType', () => {
expect(initMonitorStatusAlertType({ autocomplete: {} })).toMatchInlineSnapshot(`
expect(
initMonitorStatusAlertType({
autocomplete: {},
store: {
dispatch: jest.fn(),
getState: jest.fn(),
replaceReducer: jest.fn(),
subscribe: jest.fn(),
[Symbol.observable]: jest.fn(),
},
})
).toMatchInlineSnapshot(`
Object {
"alertParamsExpression": [Function],
"defaultActionMessage": "{{context.message}}
Last triggered at: {{state.lastTriggeredAt}}
{{context.downMonitorsWithGeo}}",
"iconClass": "uptimeApp",
"id": "xpack.uptime.alerts.monitorStatus",
"name": <MonitorStatusTitle />,
"name": <Provider
store={
Object {
"dispatch": [MockFunction],
"getState": [MockFunction],
"replaceReducer": [MockFunction],
"subscribe": [MockFunction],
Symbol(observable): [MockFunction],
}
}
>
<MonitorStatusTitle />
</Provider>,
"requiresAppContext": true,
"validate": [Function],
}
Expand Down

0 comments on commit 6bb5519

Please sign in to comment.