Skip to content

Commit e53e7f6

Browse files
committed
fix "is a directory" test to actually test that, retaining old test under a better name
1 parent 84c4335 commit e53e7f6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/tests/tree_entry.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,17 @@ describe("TreeEntry", function() {
122122
});
123123
});
124124

125-
it("can determine if an entry is a directory", function() {
125+
it("can determine if an entry is not a file", function() {
126126
return this.commit.getEntry("example")
127127
.then(function(entry) {
128128
assert.equal(entry.isFile(), false);
129129
});
130130
});
131+
132+
it("can determine if an entry is a directory", function() {
133+
return this.commit.getEntry("example")
134+
.then(function(entry) {
135+
assert.equal(entry.isDirectory(), true);
136+
});
137+
});
131138
});

0 commit comments

Comments
 (0)