mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
Drop cross-env npm dep
This commit is contained in:
parent
40b2a68381
commit
477a75d671
3 changed files with 3 additions and 21 deletions
|
|
@ -39,6 +39,7 @@ export async function getTests(ctx: Context) {
|
|||
});
|
||||
|
||||
suite.addTest("Should support external variables", async () => {
|
||||
process.env["TEST_VARIABLE"] = "test";
|
||||
const envJson = {
|
||||
USING_EXTERNAL_VAR: "${env:TEST_VARIABLE} test ${env:TEST_VARIABLE}",
|
||||
};
|
||||
|
|
@ -48,6 +49,7 @@ export async function getTests(ctx: Context) {
|
|||
|
||||
const actualEnv = await substituteVariablesInEnv(envJson);
|
||||
assert.deepStrictEqual(actualEnv, expectedEnv);
|
||||
delete process.env["TEST_VARIABLE"];
|
||||
});
|
||||
|
||||
suite.addTest("should support VSCode variables", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue