Respond to linter
This commit is contained in:
Родитель
eb0e3c7d07
Коммит
f98011b96d
|
@ -39,7 +39,8 @@ suite('DotnetCoreAcquisitionWorker Unit Tests', function () {
|
|||
const installedVersionsKey = 'installed';
|
||||
const dotnetFolderName = `.dotnet O'Hare O'Donald`;
|
||||
|
||||
function setupWorker(isRuntimeWorker : boolean, version : string, arch? : string | null, existingEventSteam? : MockEventStream, existingContext? : MockExtensionContext): [MockDotnetCoreAcquisitionWorker, MockEventStream, MockExtensionContext, IAcquisitionInvoker] {
|
||||
function setupWorker(isRuntimeWorker : boolean, version : string, arch? : string | null): [MockDotnetCoreAcquisitionWorker, MockEventStream, MockExtensionContext, IAcquisitionInvoker]
|
||||
{
|
||||
const context = new MockExtensionContext();
|
||||
const eventStream = new MockEventStream();
|
||||
const acquisitionWorker = getMockAcquisitionWorker(isRuntimeWorker, version, arch, eventStream, context);
|
||||
|
@ -213,7 +214,7 @@ suite('DotnetCoreAcquisitionWorker Unit Tests', function () {
|
|||
|
||||
test('Graveyard Removes Failed Uninstalls', async () => {
|
||||
const version = '1.0';
|
||||
let [acquisitionWorker, eventStream, context, invoker] = setupWorker(true, version);
|
||||
const [acquisitionWorker, eventStream, context, invoker] = setupWorker(true, version);
|
||||
const installKey = acquisitionWorker.getInstallKey(version);
|
||||
const res = await acquisitionWorker.acquireRuntime(version, invoker);
|
||||
await assertAcquisitionSucceeded(installKey, res.dotnetPath, eventStream, context);
|
||||
|
|
|
@ -55,11 +55,11 @@ export function getMockUtilityContext() : IUtilityContext
|
|||
return utilityContext;
|
||||
}
|
||||
|
||||
export function getMockAcquireContext(version : string, legacy = false) : IDotnetAcquireContext
|
||||
export function getMockAcquireContext(nextAcquiringVersion : string, legacy = false) : IDotnetAcquireContext
|
||||
{
|
||||
const acquireContext : IDotnetAcquireContext =
|
||||
{
|
||||
version: version,
|
||||
version: nextAcquiringVersion,
|
||||
architecture: legacy ? null : os.arch()
|
||||
};
|
||||
return acquireContext;
|
||||
|
|
Загрузка…
Ссылка в новой задаче