Skip to content

Commit

Permalink
chore: remove types tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mastro993 committed Jan 22, 2025
1 parent 8a90849 commit 07c58a7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions ts/store/reducers/__tests__/debug.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@ import { resetDebugData, setDebugData } from "../../actions/debug";
import { debugDataSelector } from "../debug";

describe("debug", () => {
it("should allow to set only object with string keys", () => {
// @ts-expect-error - Should not be allowed to set a string
setDebugData("string");
// @ts-expect-error - Should not be allowed to set a number
setDebugData(1);
// @ts-expect-error - Should not be allowed to set a boolean
setDebugData(true);
// @ts-expect-error - Should not be allowed to set a symbol
setDebugData(Symbol("symbol"));
// @ts-expect-error - Should not be allowed to set a function
setDebugData(() => null);
// @ts-expect-error - Should not be allowed to set a array
setDebugData(["string"]);
// @ts-expect-error - Should not be allowed to set an object
setDebugData(new Date());
});
it("should return the debug data without the undefined values", () => {
const state = appReducer(
{
Expand Down

0 comments on commit 07c58a7

Please sign in to comment.