Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmchase committed May 15, 2024
1 parent 78a50ec commit 6cf6965
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/util/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Deno.test({
const appendTextFile = stub(
Deno,
"writeTextFile",
resolvesNext(new Array(10)),
resolvesNext(new Array(13)),
);
try {
const version = parse("1.2.3-pre.0+1");
Expand Down Expand Up @@ -212,6 +212,27 @@ Deno.test({
{ create: true, append: true },
],
});
assertSpyCall(appendTextFile, 8, {
args: [
"/test/output",
"version_default=1.2.3-pre.0+1\n",
{ create: true, append: true },
],
});
assertSpyCall(appendTextFile, 9, {
args: [
"/test/output",
"version_dotnet=1.2.3-pre.0-1\n",
{ create: true, append: true },
],
});
assertSpyCall(appendTextFile, 10, {
args: [
"/test/output",
"version_docker=1.2.3-pre.0-1\n",
{ create: true, append: true },
],
});
} finally {
mkdirp.restore();
consoleLog.restore();
Expand Down

0 comments on commit 6cf6965

Please sign in to comment.