Skip to content

Commit

Permalink
chore(test): replaces a stray use of lodash.cloneXXX with structuredC…
Browse files Browse the repository at this point in the history
…lone
  • Loading branch information
sverweij committed Oct 13, 2023
1 parent f249954 commit d4fb629
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/report/dot/theming.spec.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { deepEqual } from "node:assert/strict";
import _cloneDeep from "lodash/cloneDeep.js";
import theming from "#report/dot/theming.mjs";

describe("[U] report/dot/theming - determineModuleColors - default theme", () => {
Expand Down Expand Up @@ -41,7 +40,7 @@ describe("[U] report/dot/theming - determineModuleColors - default theme", () =>
});

it("normalizeTheme doesn't mutate the default theme", () => {
const lOriginalDefaultTheme = _cloneDeep(theming.normalizeTheme());
const lOriginalDefaultTheme = structuredClone(theming.normalizeTheme());

theming.normalizeTheme({ graph: { someAttribute: 1234 } });
deepEqual(theming.normalizeTheme(), lOriginalDefaultTheme);
Expand Down

0 comments on commit d4fb629

Please sign in to comment.