We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96c4e4 commit 7efa5c0Copy full SHA for 7efa5c0
1 file changed
package/commonUtil/isEmpty/index.test.ts
@@ -24,6 +24,10 @@ describe("isEmpty 유틸 함수 테스트", () => {
24
expect(isEmpty([undefined])).toBe(false);
25
});
26
27
+ test("0에 대해 false를 반환한다", () => {
28
+ expect(isEmpty(0)).toBe(false);
29
+ });
30
+
31
test("비어있지 않은 객체에 대해 false를 반환한다", () => {
32
expect(isEmpty({ a: 1 })).toBe(false);
33
expect(isEmpty({ foo: "bar" })).toBe(false);
@@ -42,10 +46,6 @@ describe("isEmpty 유틸 함수 테스트", () => {
42
46
expect(isEmpty("")).toBe(true);
43
47
44
48
45
- test("0에 대해 true를 반환한다", () => {
- expect(isEmpty(0)).toBe(true);
- });
-
49
test("빈 배열에 대해 true를 반환한다", () => {
50
expect(isEmpty([])).toBe(true);
51
0 commit comments