Skip to content

Commit e746e62

Browse files
Add tests
1 parent 9617630 commit e746e62

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/tests/tree.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,13 @@ describe("Tree", function() {
112112
);
113113
});
114114
});
115+
116+
it("get all paths from a tree", async function () {
117+
const tree = await this.commit.getTree();
118+
const paths = await tree.getAllFilepaths();
119+
assert.equal(paths.length, 512);
120+
assert.equal(paths[0], ".gitignore");
121+
assert.equal(paths[511], "wscript");
122+
});
123+
115124
});

0 commit comments

Comments
 (0)