mirror of
https://github.com/affaan-m/ECC.git
synced 2026-08-17 21:15:40 +02:00
test: fix Nasiko Windows status expectation
This commit is contained in:
@@ -218,13 +218,14 @@ async function main() {
|
|||||||
}],
|
}],
|
||||||
['read-only status has a stable absent result shape', () => {
|
['read-only status has a stable absent result shape', () => {
|
||||||
const { readStatus } = require('../../scripts/nasiko');
|
const { readStatus } = require('../../scripts/nasiko');
|
||||||
|
const { normalizePlatform } = require('../../scripts/lib/nasiko-release');
|
||||||
const fixtureRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-nasiko-absent-'));
|
const fixtureRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'ecc-nasiko-absent-'));
|
||||||
try {
|
try {
|
||||||
assert.deepStrictEqual(readStatus({ installDir: fixtureRoot }), {
|
assert.deepStrictEqual(readStatus({ installDir: fixtureRoot }), {
|
||||||
installed: false,
|
installed: false,
|
||||||
qualified: false,
|
qualified: false,
|
||||||
version: null,
|
version: null,
|
||||||
executable: path.join(fs.realpathSync(fixtureRoot), 'nasiko'),
|
executable: path.join(fs.realpathSync(fixtureRoot), normalizePlatform().binaryName),
|
||||||
});
|
});
|
||||||
} finally { fs.rmSync(fixtureRoot, { recursive: true, force: true }); }
|
} finally { fs.rmSync(fixtureRoot, { recursive: true, force: true }); }
|
||||||
}],
|
}],
|
||||||
|
|||||||
Reference in New Issue
Block a user