Skip to content

Commit 0b55335

Browse files
committed
Removed unecessary typecast to AssertionResult
1 parent c6ccacd commit 0b55335

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/jest-test-result/src/__tests__/formatTestResults.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
*/
77

88
import formatTestResults from '../formatTestResults';
9-
import type {AggregatedResult, AssertionResult} from '../types';
9+
import type {AggregatedResult} from '../types';
1010

1111
describe('formatTestResults', () => {
1212
const assertion = {
1313
fullName: 'TestedModule#aMethod when some condition is met returns true',
1414
status: 'passed',
1515
title: 'returns true',
16-
} as AssertionResult;
16+
};
1717

1818
const results = {
1919
testResults: [
@@ -36,7 +36,7 @@ describe('formatTestResults', () => {
3636
fullName: 'Pending test',
3737
status: 'pending',
3838
title: 'is still pending',
39-
} as AssertionResult;
39+
};
4040

4141
const skippedResults = {
4242
testResults: [
@@ -62,7 +62,7 @@ describe('formatTestResults', () => {
6262
fullName: 'Focused test',
6363
status: 'focused',
6464
title: 'focused test',
65-
} as AssertionResult;
65+
};
6666

6767
const focusedResults = {
6868
testResults: [

0 commit comments

Comments
 (0)