aboutsummaryrefslogtreecommitdiff
path: root/test/unit/patch.unit.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/patch.unit.test.ts')
-rw-r--r--test/unit/patch.unit.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/patch.unit.test.ts b/test/unit/patch.unit.test.ts
index e4aa8d3..3197059 100644
--- a/test/unit/patch.unit.test.ts
+++ b/test/unit/patch.unit.test.ts
@@ -89,7 +89,7 @@ describe("Patch", () => {
}
});
- it("Should get the hunks of an empty patch and respond with null", async() => {
+ it("Should get the hunks of an empty patch and respond with an ampty array", async() => {
expect.assertions(2);
const other_commit = await Commit.lookup(repository, "ef256e9e40b5fd0cc741c509e611808cc66bafad");
@@ -98,7 +98,7 @@ describe("Patch", () => {
const hunks = await other_patch.getHunks();
expect(hunks).toBeDefined();
- expect(hunks).toBeNull();
+ expect(hunks).toHaveLength(0);
});
});
}); \ No newline at end of file