|
6 | 6 | import * as assert from "assert"; |
7 | 7 | import { |
8 | 8 | ConventionalCommit, |
9 | | - getConventionType, |
| 9 | + getConventionType |
10 | 10 | } from "../../generate/convCommit"; |
11 | 11 | import { ACTION, CONVENTIONAL_TYPE } from "../../lib/constants"; |
12 | 12 |
|
@@ -81,7 +81,7 @@ describe("Test #ConventionalCommit class for path-based conventional commit logi |
81 | 81 | }); |
82 | 82 |
|
83 | 83 | describe("#isBuildRelated", function () { |
84 | | - it("can recognize a build change fr a build-related filename", function () { |
| 84 | + it("can recognize a build change for a build-related filename", function () { |
85 | 85 | assert.strictEqual( |
86 | 86 | new ConventionalCommit("Dockerfile").isBuildRelated(), |
87 | 87 | true |
@@ -186,10 +186,11 @@ describe("Test #ConventionalCommit class for path-based conventional commit logi |
186 | 186 | }); |
187 | 187 |
|
188 | 188 | describe("#getType", function () { |
189 | | - // Rather than true and false like in above tests this actually categorizes and also it closer |
190 | | - // to the real world as it through a hierarchy (for example .yml is config-related unless it is |
191 | | - // for a CI file). But, this doesn't care what the action is like create or delete or modify, so |
192 | | - // it won't impose meaning based on that. |
| 189 | + // Rather than true and false like in above tests this actually categorizes |
| 190 | + // and also it closer to the real world as it through a hierarchy (for |
| 191 | + // example .yml is config-related unless it is for a CI file). But, this |
| 192 | + // doesn't care what the action is like create or delete or modify, so it |
| 193 | + // won't impose meaning based on that. |
193 | 194 | it("sees a build file as build", function () { |
194 | 195 | assert.strictEqual( |
195 | 196 | new ConventionalCommit("Makefile").getType(), |
@@ -232,7 +233,7 @@ describe("Test #ConventionalCommit class for path-based conventional commit logi |
232 | 233 | ); |
233 | 234 | }); |
234 | 235 |
|
235 | | - // TODO Break into categories |
| 236 | + // TODO: Break into categories |
236 | 237 | it("can tell a type for other types", function () { |
237 | 238 | assert.strictEqual( |
238 | 239 | new ConventionalCommit("foo").getType(), |
|
0 commit comments