From ff31e5e150d1242174da3e7b94affdf44d14d6e2 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Sat, 4 Jan 2025 09:42:13 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Add:=20=E3=83=9E=E3=83=BC=E3=82=B8=E3=82=AD?= =?UTF-8?q?=E3=83=A5=E3=83=BC=E3=81=A7=E3=81=A0=E3=81=91=E8=90=BD=E3=81=A1?= =?UTF-8?q?=E3=82=8B=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mergeQueueFail.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/mergeQueueFail.test.ts diff --git a/src/mergeQueueFail.test.ts b/src/mergeQueueFail.test.ts new file mode 100644 index 0000000..2924b62 --- /dev/null +++ b/src/mergeQueueFail.test.ts @@ -0,0 +1,9 @@ +import test from "node:test"; +import * as assert from "node:assert"; +import child_process from "node:child_process"; + +test("マージキューだけ落ちるテスト", async () => { + const stdout = child_process.execSync("git branch --show-current").toString().trim(); + + assert.ok(!stdout.includes("gh-readonly-queue")); +}) From d4980e9d510a7ad1bc85fd364dc241493e5519a5 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Sat, 4 Jan 2025 09:43:56 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Code:=20=E3=83=95=E3=82=A9=E3=83=BC?= =?UTF-8?q?=E3=83=9E=E3=83=83=E3=83=88=E3=82=92=E3=81=8B=E3=81=91=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mergeQueueFail.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mergeQueueFail.test.ts b/src/mergeQueueFail.test.ts index 2924b62..cd7b6ae 100644 --- a/src/mergeQueueFail.test.ts +++ b/src/mergeQueueFail.test.ts @@ -1,9 +1,12 @@ -import test from "node:test"; import * as assert from "node:assert"; import child_process from "node:child_process"; +import test from "node:test"; test("マージキューだけ落ちるテスト", async () => { - const stdout = child_process.execSync("git branch --show-current").toString().trim(); + const stdout = child_process + .execSync("git branch --show-current") + .toString() + .trim(); assert.ok(!stdout.includes("gh-readonly-queue")); -}) +});