From c8f468ab00e47fcf2e533f4a147ec6fdb3144f5b Mon Sep 17 00:00:00 2001 From: Jenny Schweers Date: Thu, 13 Feb 2025 12:49:14 -0500 Subject: [PATCH] Updated cloudcare markdown tests "Since Sinon 5, the sinon object is a default sandbox in itself!" See https://sinonjs.org/releases/latest/sandbox/ --- .../apps/cloudcare/static/cloudcare/js/spec/markdown_spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/corehq/apps/cloudcare/static/cloudcare/js/spec/markdown_spec.js b/corehq/apps/cloudcare/static/cloudcare/js/spec/markdown_spec.js index 0f6e7f6764b60..d4d3d196603ca 100644 --- a/corehq/apps/cloudcare/static/cloudcare/js/spec/markdown_spec.js +++ b/corehq/apps/cloudcare/static/cloudcare/js/spec/markdown_spec.js @@ -14,16 +14,14 @@ hqDefine("cloudcare/js/spec/markdown_spec", [ describe('Markdown', function () { let render = markdown.render; - let sandbox; beforeEach(function () { initialPageData.clear(); initialPageData.register("toggles_dict", { CASE_LIST_TILE_CUSTOM: false }); - sandbox = sinon.sandbox.create(); }); afterEach(function () { initialPageData.unregister("toggles_dict"); - sandbox.restore(); + sinon.restore(); }); describe('Markdown basics', function () {