Skip to content

Commit 7efa5c0

Browse files
committed
refactor: modify test case
1 parent a96c4e4 commit 7efa5c0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

package/commonUtil/isEmpty/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ describe("isEmpty 유틸 함수 테스트", () => {
2424
expect(isEmpty([undefined])).toBe(false);
2525
});
2626

27+
test("0에 대해 false를 반환한다", () => {
28+
expect(isEmpty(0)).toBe(false);
29+
});
30+
2731
test("비어있지 않은 객체에 대해 false를 반환한다", () => {
2832
expect(isEmpty({ a: 1 })).toBe(false);
2933
expect(isEmpty({ foo: "bar" })).toBe(false);
@@ -42,10 +46,6 @@ describe("isEmpty 유틸 함수 테스트", () => {
4246
expect(isEmpty("")).toBe(true);
4347
});
4448

45-
test("0에 대해 true를 반환한다", () => {
46-
expect(isEmpty(0)).toBe(true);
47-
});
48-
4949
test("빈 배열에 대해 true를 반환한다", () => {
5050
expect(isEmpty([])).toBe(true);
5151
});

0 commit comments

Comments
 (0)