Skip to content

Commit b538206

Browse files
committed
test: update prepareCommitMsg.test.ts
1 parent 87b1918 commit b538206

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/test/prepareCommitMsg.test.ts

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,6 @@ describe("Prepare commit message", function () {
308308
assert.deepStrictEqual(_msgNamed(lines), expected);
309309
});
310310

311-
/* eslint-disable-next-line quotes */
312-
it('handles 2 "build(deps)" files correctly', function () {
313-
const lines = ["M\tpackage.json", "M\tpackage-lock.json"];
314-
const expected = {
315-
typePrefix: CONVENTIONAL_TYPE.BUILD_DEPENDENCIES,
316-
description: "update package.json and package-lock.json",
317-
};
318-
319-
assert.deepStrictEqual(_msgNamed(lines), expected);
320-
});
321-
322311
it("handles 3 README.md files in different locations as full paths", function () {
323312
{
324313
const lines = [
@@ -349,6 +338,18 @@ describe("Prepare commit message", function () {
349338
assert.deepStrictEqual(_msgNamed(lines), expected);
350339
}
351340
});
341+
342+
/* eslint-disable-next-line quotes */
343+
it('handles 2 "build(deps)" files correctly', function () {
344+
const lines = ["M\tpackage.json", "M\tpackage-lock.json"];
345+
const expected = {
346+
typePrefix: CONVENTIONAL_TYPE.BUILD_DEPENDENCIES,
347+
description: "update package.json and package-lock.json",
348+
};
349+
350+
assert.deepStrictEqual(_msgNamed(lines), expected);
351+
});
352+
352353
});
353354

354355
describe("multiple files with different actions", function () {

0 commit comments

Comments
 (0)