Revert "Update dependency prettier to v3 (#71586)" (#71755)

This reverts commit 2e8cd1c021.
This commit is contained in:
Ashley Harrison
2023-07-17 14:46:15 +01:00
committed by GitHub
parent 8c6cdf51fc
commit 5ca382c88a
93 changed files with 378 additions and 565 deletions

View File

@@ -100,7 +100,7 @@ describe('getValidIntervals', () => {
getTimeSrv: () =>
({
getValidIntervals: (intervals: string[]) => intervals,
}) as unknown as TimeSrv,
} as unknown as TimeSrv),
};
const result = getValidIntervals(emptyIntervals, dependencies);
@@ -116,7 +116,7 @@ describe('getValidIntervals', () => {
getTimeSrv: () =>
({
getValidIntervals: (intervals: string[]) => intervals,
}) as unknown as TimeSrv,
} as unknown as TimeSrv),
};
const result = getValidIntervals(duplicateIntervals, dependencies);
@@ -132,7 +132,7 @@ describe('getValidIntervals', () => {
getTimeSrv: () =>
({
getValidIntervals: (intervals: string[]) => intervals,
}) as unknown as TimeSrv,
} as unknown as TimeSrv),
};
const result = getValidIntervals(duplicateIntervals, dependencies);
@@ -149,7 +149,7 @@ describe('validateIntervals', () => {
getTimeSrv: () =>
({
getValidIntervals: (intervals: string[]) => intervals,
}) as unknown as TimeSrv,
} as unknown as TimeSrv),
};
const result = validateIntervals(defaultIntervals, dependencies);
@@ -166,7 +166,7 @@ describe('validateIntervals', () => {
getValidIntervals: () => {
throw new Error('Some error');
},
}) as unknown as TimeSrv,
} as unknown as TimeSrv),
};
const result = validateIntervals(defaultIntervals, dependencies);