| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1b4c474 commit cfff923
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,6 +33,19 @@ describe("Commit", function() { | |||
| 33 | 33 | assert.equal(this.commit.message(), "Update README.md"); | |
| 34 | 34 | }); | |
| 35 | 35 | ||
| 36 | + it("has a raw message", function() { | ||
| 37 | + assert.equal(this.commit.messageRaw(), "Update README.md"); | ||
| 38 | + }); | ||
| 39 | + | ||
| 40 | + it("has a message encoding", function() { | ||
| 41 | + var encoding = this.commit.messageEncoding(); | ||
| 42 | + assert.ok(encoding === "UTF-8" || encoding === undefined); | ||
| 43 | + }); | ||
| 44 | + | ||
| 45 | + it("has a summary", function() { | ||
| 46 | + assert.equal(this.commit.summary(), "Update README.md"); | ||
| 47 | + }); | ||
| 48 | + | ||
| 36 | 49 | it("has a sha", function() { | |
| 37 | 50 | assert.equal(this.commit.sha(), oid); | |
| 38 | 51 | }); | |
@@ -150,6 +163,11 @@ describe("Commit", function() { | |||
| 150 | 163 | }); | |
| 151 | 164 | }); | |
| 152 | 165 | ||
| 166 | + it("has owner", function() { | ||
| 167 | + var owner = this.commit.owner(); | ||
| 168 | + assert.ok(owner instanceof Repository); | ||
| 169 | + }); | ||
| 170 | + | ||
| 153 | 171 | it("can walk its repository's history", function(done) { | |
| 154 | 172 | var historyCount = 0; | |
| 155 | 173 | var expectedHistoryCount = 364; | |
@@ -197,6 +215,10 @@ describe("Commit", function() { | |||
| 197 | 215 | }); | |
| 198 | 216 | }); | |
| 199 | 217 | ||
| 218 | + it("has a parent count", function() { | ||
| 219 | + assert.equal(1, this.commit.parentcount()); | ||
| 220 | + }); | ||
| 221 | + | ||
| 200 | 222 | it("can retrieve and walk a commit tree", function() { | |
| 201 | 223 | var commitTreeEntryCount = 0; | |
| 202 | 224 | var expectedCommitTreeEntryCount = 198; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments