Skip to content

Commit

Permalink
test: works better if you test with the right function
Browse files Browse the repository at this point in the history
Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker committed Dec 16, 2024
1 parent ad4f683 commit 742dfe9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions packages/utils/src/utils/nullish.utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { isNullish, nonNullish, notEmptyString } from "./nullish.utils";
import {
emptyString,
isNullish,
nonNullish,
notEmptyString,
} from "./nullish.utils";

describe("nullish-utils", () => {
describe("isNullish", () => {
Expand Down Expand Up @@ -45,10 +50,10 @@ describe("nullish-utils", () => {

describe("emptyString", () => {
it("should determine empty", () => {
expect(notEmptyString(null)).toBeTruthy();
expect(notEmptyString(undefined)).toBeTruthy();
expect(notEmptyString("")).toBeTruthy();
expect(notEmptyString("test")).toBeFalsy();
expect(emptyString(null)).toBeTruthy();
expect(emptyString(undefined)).toBeTruthy();
expect(emptyString("")).toBeTruthy();
expect(emptyString("test")).toBeFalsy();
});
});
});

0 comments on commit 742dfe9

Please sign in to comment.