mirror of
https://github.com/Kong/insomnia.git
synced 2026-11-04 12:03:53 -05:00
fix(insomnia-test): remove conditional from key-value blank row spec
Check blankness with every() instead of a boolean expression flagged by playwright/no-conditional-in-test. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86b3953a78
commit
2ef62e5af4
1 file changed
+1
-1
@@ -38,7 +38,7 @@ test("Verify Trailing Blank Row In Headers And Params Is Not Persisted Until Typ
|
||||
const paramsAfter = await httpRequestPage.getParams();
|
||||
|
||||
const isBlank = (pair: { name: string; value: string }) =>
|
||||
pair.name === "" && pair.value === "";
|
||||
[pair.name, pair.value].every((text) => text === "");
|
||||
|
||||
expect(request).toBeDefined();
|
||||
expect(headersBefore.some(isBlank)).toBe(false);
|
||||
|
||||
Reference in new issue
Block a user