Skip to content

Commit

Permalink
Removed unecessary typecast to AssertionResult
Browse files Browse the repository at this point in the history
  • Loading branch information
lpizzinidev committed Dec 31, 2022
1 parent c6ccacd commit 0b55335
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -6,14 +6,14 @@
*/

import formatTestResults from '../formatTestResults';
import type {AggregatedResult, AssertionResult} from '../types';
import type {AggregatedResult} from '../types';

describe('formatTestResults', () => {
const assertion = {
fullName: 'TestedModule#aMethod when some condition is met returns true',
status: 'passed',
title: 'returns true',
} as AssertionResult;
};

const results = {
testResults: [
Expand All @@ -36,7 +36,7 @@ describe('formatTestResults', () => {
fullName: 'Pending test',
status: 'pending',
title: 'is still pending',
} as AssertionResult;
};

const skippedResults = {
testResults: [
Expand All @@ -62,7 +62,7 @@ describe('formatTestResults', () => {
fullName: 'Focused test',
status: 'focused',
title: 'focused test',
} as AssertionResult;
};

const focusedResults = {
testResults: [
Expand Down

0 comments on commit 0b55335

Please sign in to comment.