From 0ffbea865082575a64d1806c222e385af9aca4c0 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 22 Feb 2021 11:04:22 +0000 Subject: [PATCH] node tests: Break up channel tests. --- frontend_tests/node_tests/channel.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend_tests/node_tests/channel.js b/frontend_tests/node_tests/channel.js index 30d3bd8603..4058c6a813 100644 --- a/frontend_tests/node_tests/channel.js +++ b/frontend_tests/node_tests/channel.js @@ -40,7 +40,7 @@ function test_with_mock_ajax(test_params) { check_ajax_options(ajax_options); } -run_test("basics", () => { +run_test("post", () => { test_with_mock_ajax({ run_code() { channel.post({}); @@ -55,7 +55,9 @@ run_test("basics", () => { options.simulate_error(); }, }); +}); +run_test("patch", () => { test_with_mock_ajax({ run_code() { channel.patch({}); @@ -71,7 +73,9 @@ run_test("basics", () => { options.simulate_error(); }, }); +}); +run_test("put", () => { test_with_mock_ajax({ run_code() { channel.put({}); @@ -86,7 +90,9 @@ run_test("basics", () => { options.simulate_error(); }, }); +}); +run_test("delete", () => { test_with_mock_ajax({ run_code() { channel.del({}); @@ -101,7 +107,9 @@ run_test("basics", () => { options.simulate_error(); }, }); +}); +run_test("get", () => { test_with_mock_ajax({ run_code() { channel.get({});