Skip to content

Commit

Permalink
Fixed unit tests in core package
Browse files Browse the repository at this point in the history
  • Loading branch information
IPWright83 committed Dec 15, 2023
1 parent 82f8e1c commit cce0380
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/utils/utils.unit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ describe("utils", () => {
logWarning("W100", "Foobar");

expect(spy).toHaveBeenCalledWith(
"@chart-io/react encountered an warning. W100: Foobar. You can read more about this https://ipwright83.github.io/chart-io/?path=/docs/errors-warnings-warnings-W100.",
"@chart-io encountered an warning. W100: Foobar. You can read more about this https://ipwright83.github.io/chart-io/?path=/docs/errors-warnings-warnings-W100.",
);
});

Expand All @@ -189,7 +189,7 @@ describe("utils", () => {

logDebug("Foobar");

expect(spy).toHaveBeenCalledWith("@chart-io/react", "Foobar", []);
expect(spy).toHaveBeenCalledWith("@chart-io", "Foobar", []);
});

it("logError outputs correctly to the console", () => {
Expand All @@ -198,7 +198,7 @@ describe("utils", () => {
logError("E100", "Foobar");

expect(spy).toHaveBeenCalledWith(
"@chart-io/react encountered an error. E100: Foobar. You can read more about this https://ipwright83.github.io/chart-io/?path=/docs/errors-warnings-errors-E100.",
"@chart-io encountered an error. E100: Foobar. You can read more about this https://ipwright83.github.io/chart-io/?path=/docs/errors-warnings-errors-E100.",
);
});

Expand All @@ -210,7 +210,7 @@ describe("utils", () => {
}).toThrow("Foobar");

expect(spy).toHaveBeenCalledWith(
"@chart-io/react encountered an error. E100: Foobar. You can read more about this https://ipwright83.github.io/chart-io/?path=/docs/errors-warnings-errors-E100.",
"@chart-io encountered an error. E100: Foobar. You can read more about this https://ipwright83.github.io/chart-io/?path=/docs/errors-warnings-errors-E100.",
);
});
});
Expand Down

0 comments on commit cce0380

Please sign in to comment.