Skip to content

Commit

Permalink
fix: duration in fallback mode
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Feb 17, 2024
1 parent e84f63c commit d9795ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/metadata/utils/getStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const getStart = (testInvocation: TestInvocationMetadata) => {
if (typeof start1 === 'number') {
return typeof start2 === 'number' ? Math.min(start1, start2) : start1;
} else {
return typeof start2 === 'number' ? start2 : Number.NaN;
return typeof start2 === 'number' ? start2 : undefined;
}
};
2 changes: 1 addition & 1 deletion src/metadata/utils/getStop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export const getStop = (testInvocation: TestInvocationMetadata) => {
if (typeof stop1 === 'number') {
return typeof stop2 === 'number' ? Math.max(stop1, stop2) : stop1;
} else {
return typeof stop2 === 'number' ? stop2 : Number.NaN;
return typeof stop2 === 'number' ? stop2 : undefined;
}
};

0 comments on commit d9795ec

Please # to comment.