test: expect Windows Adminer runtime path

This commit is contained in:
reaper
2026-08-26 21:04:42 -05:00
parent e6ed7e5de8
commit b3431fa892
+5 -6
View File
@@ -65,12 +65,11 @@ describe('native project configuration', () => {
}) })
expect(bootstrap).toContain("value = '127.0.0.1:41003'") expect(bootstrap).toContain("value = '127.0.0.1:41003'")
expect(bootstrap).toContain("username.value = 'db'") expect(bootstrap).toContain("username.value = 'db'")
expect(bootstrap).toContain( const adminer =
join(installedRuntimeRoot, 'root', 'usr', 'share', 'aurora', 'adminer.php').replace( process.platform === 'win32'
/\\/g, ? join(installedRuntimeRoot, 'tools', 'adminer.php')
'\\\\' : join(installedRuntimeRoot, 'root', 'usr', 'share', 'aurora', 'adminer.php')
) expect(bootstrap).toContain(adminer.replace(/\\/g, '\\\\'))
)
}) })
}) })