aboutsummaryrefslogtreecommitdiff
path: root/test/cdp/commands-test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/cdp/commands-test.ts')
-rw-r--r--test/cdp/commands-test.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cdp/commands-test.ts b/test/cdp/commands-test.ts
index ad1b057..738189d 100644
--- a/test/cdp/commands-test.ts
+++ b/test/cdp/commands-test.ts
@@ -42,6 +42,11 @@ describe("cdp command table", () => {
const r = decodeResult("Nope.method" as "Page.enable", {});
assert.equal(r.success, false);
});
+
+ test("accepts an empty Network.setExtraHTTPHeaders response", () => {
+ const r = decodeResult("Network.setExtraHTTPHeaders", {});
+ assert.equal(r.success, true);
+ });
});
describe("Accessibility.getFullAXTree schema", () => {