Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 5c173b8

Browse files
committed
fix test
Signed-off-by: Brian Fitzpatrick <[email protected]>
1 parent 054a413 commit 5c173b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/suite/registry.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ suite('Didact registry test suite', () => {
117117

118118
test('append registry from environment variable', async() => {
119119
const tutsToAppend : String = '[{"name":"AppendMe2","category":"AppendedCat2","sourceUri":"https%3A%2F%2Fraw.githubusercontent.com%2Fredhat-developer%2Fvscode-didact%2Fmaster%2Fexamples%2Fregistry.example.didact.md"}]';
120-
getContext().environmentVariableCollection.append(DIDACT_APPEND_REGISTERED_SETTING, tutsToAppend.toString());
120+
process.env[DIDACT_APPEND_REGISTERED_SETTING] = tutsToAppend.toString();
121121

122122
const envVarJson = getAppendRegisteredSettingFromEnv();
123123
console.log(`envVar = ` + envVarJson);
@@ -129,7 +129,7 @@ suite('Didact registry test suite', () => {
129129
const tutName = `AppendMe2`;
130130
await appendAdditionalTutorialsFromEnv();
131131
const foundTutorial = verifyTutorialInRegistry(tutName);
132-
getContext().environmentVariableCollection.delete(DIDACT_APPEND_REGISTERED_SETTING);
132+
delete process.env.DIDACT_APPEND_REGISTERED_SETTING;
133133
assert.ok(foundTutorial, `Did not find ${tutName} registered after appending to tutorial list from settings`);
134134
});
135135

0 commit comments

Comments
 (0)