mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 20:55:41 +00:00
fix: incorrectly counts running/in-progress requests
This commit is contained in:
@@ -21,7 +21,7 @@ const getDisplayName = (fullPath, pathname, name = '') => {
|
||||
};
|
||||
|
||||
const getTestStatus = (results) => {
|
||||
if (!results || !results.length) return 'pass';
|
||||
if (!results || !results.length) return 'running';
|
||||
const failed = results.filter((result) => result.status === 'fail');
|
||||
return failed.length ? 'fail' : 'pass';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user