Skip to content

Commit

Permalink
Updated cloudcare markdown tests
Browse files Browse the repository at this point in the history
"Since Sinon 5, the sinon object is a default sandbox in itself!"
See https://sinonjs.org/releases/latest/sandbox/
  • Loading branch information
orangejenny committed Feb 13, 2025
1 parent d79b62b commit c8f468a
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit c8f468a

Please sign in to comment.