Skip to content

Commit 6cf6965

Browse files
committed
fix test
1 parent 78a50ec commit 6cf6965

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/util/version.test.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Deno.test({
151151
const appendTextFile = stub(
152152
Deno,
153153
"writeTextFile",
154-
resolvesNext(new Array(10)),
154+
resolvesNext(new Array(13)),
155155
);
156156
try {
157157
const version = parse("1.2.3-pre.0+1");
@@ -212,6 +212,27 @@ Deno.test({
212212
{ create: true, append: true },
213213
],
214214
});
215+
assertSpyCall(appendTextFile, 8, {
216+
args: [
217+
"/test/output",
218+
"version_default=1.2.3-pre.0+1\n",
219+
{ create: true, append: true },
220+
],
221+
});
222+
assertSpyCall(appendTextFile, 9, {
223+
args: [
224+
"/test/output",
225+
"version_dotnet=1.2.3-pre.0-1\n",
226+
{ create: true, append: true },
227+
],
228+
});
229+
assertSpyCall(appendTextFile, 10, {
230+
args: [
231+
"/test/output",
232+
"version_docker=1.2.3-pre.0-1\n",
233+
{ create: true, append: true },
234+
],
235+
});
215236
} finally {
216237
mkdirp.restore();
217238
consoleLog.restore();

0 commit comments

Comments
 (0)