From b3431fa892697cdb0b5ebc162e0d6ada6d36e6d6 Mon Sep 17 00:00:00 2001 From: reaper Date: Wed, 26 Aug 2026 21:04:42 -0500 Subject: [PATCH] test: expect Windows Adminer runtime path --- src/main/native/nativeProject.test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/native/nativeProject.test.ts b/src/main/native/nativeProject.test.ts index 1ffb472..6d62ccd 100644 --- a/src/main/native/nativeProject.test.ts +++ b/src/main/native/nativeProject.test.ts @@ -65,12 +65,11 @@ describe('native project configuration', () => { }) expect(bootstrap).toContain("value = '127.0.0.1:41003'") expect(bootstrap).toContain("username.value = 'db'") - expect(bootstrap).toContain( - join(installedRuntimeRoot, 'root', 'usr', 'share', 'aurora', 'adminer.php').replace( - /\\/g, - '\\\\' - ) - ) + const adminer = + process.platform === 'win32' + ? join(installedRuntimeRoot, 'tools', 'adminer.php') + : join(installedRuntimeRoot, 'root', 'usr', 'share', 'aurora', 'adminer.php') + expect(bootstrap).toContain(adminer.replace(/\\/g, '\\\\')) }) })