22 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33 * SPDX-License-Identifier: Apache-2.0
44 */
5- import * as vscode from 'vscode'
65import assert from 'assert'
76import nodefs from 'fs' // eslint-disable-line no-restricted-imports
87import * as sinon from 'sinon'
@@ -14,7 +13,7 @@ import { InstalledClock } from '@sinonjs/fake-timers'
1413import { ChildProcess } from '../../../shared/utilities/processUtils'
1514import { fs , globals } from '../../../shared'
1615
17- describe ( 'SshKeyUtility ' , async function ( ) {
16+ describe ( 'SshKeyPair ' , async function ( ) {
1817 let temporaryDirectory : string
1918 let keyPath : string
2019 let keyPair : SshKeyPair
@@ -90,10 +89,10 @@ describe('SshKeyUtility', async function () {
9089
9190 it ( 'does overwrite existing keys on get call' , async function ( ) {
9291 const generateStub = sinon . spy ( SshKeyPair , 'generateSshKeyPair' )
93- const keyBefore = await fs . readFileBytes ( vscode . Uri . file ( keyPath ) )
92+ const keyBefore = await fs . readFileBytes ( keyPath )
9493 keyPair = await SshKeyPair . getSshKeyPair ( keyPath , 30000 )
9594
96- const keyAfter = await fs . readFileBytes ( vscode . Uri . file ( keyPath ) )
95+ const keyAfter = await fs . readFileBytes ( keyPath )
9796 sinon . assert . calledOnce ( generateStub )
9897
9998 assert . notStrictEqual ( keyBefore , keyAfter )
0 commit comments