test: expect Windows Adminer runtime path
This commit is contained in:
@@ -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, '\\\\'))
|
||||||
)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user