From a1ca52a5fbb68c615ca3da4e403651bbdbbfb387 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Thu, 20 Jul 2023 11:01:49 -0300 Subject: [PATCH 1/2] Run channel.status test using both formats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We do this elsewhere, noticed we weren’t doing it here, seems like a good idea. --- test/rest/status.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rest/status.test.js b/test/rest/status.test.js index 3a0a2bbd8a..55573b4594 100644 --- a/test/rest/status.test.js +++ b/test/rest/status.test.js @@ -4,6 +4,7 @@ define(['shared_helper', 'chai'], function (helper, chai) { var rest; var utils = helper.Utils; var expect = chai.expect; + var restTestOnJsonMsgpack = helper.restTestOnJsonMsgpack; // RSL8 describe('rest/status', function () { @@ -20,7 +21,7 @@ define(['shared_helper', 'chai'], function (helper, chai) { }); }); - it('status0', function (done) { + restTestOnJsonMsgpack('status0', function (done, rest) { var channel = rest.channels.get('status0'); channel.status(function (err, channelDetails) { try { From 5309db53435a53b76d266e3777305918709ea817 Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Thu, 20 Jul 2023 11:03:29 -0300 Subject: [PATCH 2/2] Run channel.status test in browser Missed out in 8e0f0a8. --- test/support/browser_file_list.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/support/browser_file_list.js b/test/support/browser_file_list.js index 26ec6f053e..31369d1f3a 100644 --- a/test/support/browser_file_list.js +++ b/test/support/browser_file_list.js @@ -69,4 +69,5 @@ window.__testFiles__.files = { 'test/browser/connection.test.js': true, 'test/browser/simple.test.js': true, 'test/browser/http.test.js': true, + 'test/rest/status.test.js': true, };