mirror of
https://github.com/NuGet/setup-nuget.git
synced 2025-12-06 07:48:23 +08:00
test: test that path is getting set up right
This commit is contained in:
@@ -84,6 +84,7 @@ describe('installer tests', () => {
|
|||||||
expect(fs.readFileSync(path.join(cacheDir, 'nuget.exe'), 'utf8')).toEqual(
|
expect(fs.readFileSync(path.join(cacheDir, 'nuget.exe'), 'utf8')).toEqual(
|
||||||
'abcd'
|
'abcd'
|
||||||
);
|
);
|
||||||
|
expect(process.env['PATH']).toContain(cacheDir);
|
||||||
if (!IS_WINDOWS) {
|
if (!IS_WINDOWS) {
|
||||||
expect(fs.readFileSync(path.join(cacheDir, 'nuget'), 'utf8')).toEqual(
|
expect(fs.readFileSync(path.join(cacheDir, 'nuget'), 'utf8')).toEqual(
|
||||||
`#!/bin/sh\nmono $MONO_OPTIONS ${path.join(cacheDir, 'nuget.exe')} "$@"`
|
`#!/bin/sh\nmono $MONO_OPTIONS ${path.join(cacheDir, 'nuget.exe')} "$@"`
|
||||||
|
|||||||
Reference in New Issue
Block a user