run prettier formatting

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-08-09 11:42:22 +02:00
parent 467b758a7a
commit 923491eece
311 changed files with 1449 additions and 1667 deletions
@@ -32,7 +32,11 @@ type Props = {
export const EscalationPolicy = ({ policyId }: Props) => {
const api = useApi(pagerDutyApiRef);
const { value: users, loading, error } = useAsync(async () => {
const {
value: users,
loading,
error,
} = useAsync(async () => {
const oncalls = await api.getOnCallByPolicyId(policyId);
const usersItem = oncalls
.sort((a, b) => a.escalation_level - b.escalation_level)
@@ -55,7 +55,11 @@ export const PagerDutyCard = () => {
setRefreshIncidents(x => !x);
}, []);
const { value: service, loading, error } = useAsync(async () => {
const {
value: service,
loading,
error,
} = useAsync(async () => {
const services = await api.getServiceByIntegrationKey(
integrationKey as string,
);
@@ -92,9 +92,8 @@ describe('TriggerDialog', () => {
});
expect(mockTriggerAlarmFn).toHaveBeenCalled();
expect(mockTriggerAlarmFn).toHaveBeenCalledWith({
integrationKey: entity!.metadata!.annotations![
'pagerduty.com/integration-key'
],
integrationKey:
entity!.metadata!.annotations!['pagerduty.com/integration-key'],
source: window.location.toString(),
description,
userName: 'guest@example.com',