Skip to content

Commit

Permalink
[perf] use description for checking req
Browse files Browse the repository at this point in the history
  • Loading branch information
npeltier committed Dec 20, 2024
1 parent 75ccf9a commit 5fcb1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k6-scripts/fragment-fetches.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default function () {
} else {
const fields = res?.body?.length > 0 ? JSON.parse(res.body).fields : {};
const fieldCheck = check(fields, {
'cardTitle is not empty': (f) => {
return f?.cardTitle?.length > 0;
'description is not empty': (f) => {
return f?.description?.value?.length > 0;
},
});
if (!fieldCheck) {
Expand Down

0 comments on commit 5fcb1ed

Please sign in to comment.