Skip to content

Commit 141bde0

Browse files
matherm-aboehmJno21
authored andcommitted
test(prepare): fix test with template variables in commit message
1 parent 0f36f0c commit 141bde0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/prepare.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ describe("prepare", () => {
261261
const pluginConfig: PluginConfig = {
262262
files: ["dist/**"],
263263
commitMessage:
264-
"release: ${nextRelease.version} tag: ${nextRelease.gitTag}",
264+
`release: \${nextRelease.version} tag: \${nextRelease.gitTag}
265+
head: \${nextRelease.gitHead} notes: \${nextRelease.notes}`,
265266
};
266267
const context = createMockContext({
267268
nextRelease: {
@@ -285,7 +286,8 @@ describe("prepare", () => {
285286

286287
expect(mockGitHubClient.createCommit).toHaveBeenCalledWith(
287288
expect.any(Object),
288-
"release: 1.2.3 tag: v1.2.3",
289+
`release: 1.2.3 tag: v1.2.3
290+
head: abc123 notes: Release notes`,
289291
expect.any(String),
290292
expect.any(Array),
291293
undefined,

0 commit comments

Comments
 (0)