File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { randomUUID } from 'crypto';
16
16
import { sleep } from './util' ;
17
17
18
18
describe ( 'Cp' , ( ) => {
19
- let tmpDir : string | undefined ;
19
+ let tmpDir = '' ;
20
20
21
21
beforeEach ( ( ) => {
22
22
tmpDir = `${ tmpdir ( ) } /${ randomUUID ( ) } ` ;
@@ -31,11 +31,6 @@ describe('Cp', () => {
31
31
32
32
describe ( 'cpFromPod' , ( ) => {
33
33
it ( 'should run create tar command to a url' , async ( ) => {
34
- // make the compile happy
35
- if ( ! tmpDir ) {
36
- throw new Error ( 'tmpDir not initialized' ) ;
37
- }
38
-
39
34
const kc = new KubeConfig ( ) ;
40
35
const fakeWebSocketInterface : WebSocketInterface = mock ( WebSocketHandler ) ;
41
36
const fakeWebSocket : WebSocket . WebSocket = mock ( WebSocket ) ;
@@ -106,11 +101,6 @@ describe('Cp', () => {
106
101
107
102
describe ( 'cpToPod' , ( ) => {
108
103
it ( 'should run extract tar command to a url' , async ( ) => {
109
- // make the compile happy
110
- if ( ! tmpDir ) {
111
- throw new Error ( 'tmpDir not initialized' ) ;
112
- }
113
-
114
104
const kc = new KubeConfig ( ) ;
115
105
const fakeWebSocketInterface : WebSocketInterface = mock ( WebSocketHandler ) ;
116
106
const fakeWebSocket : WebSocket . WebSocket = mock ( WebSocket ) as WebSocket . WebSocket ;
You can’t perform that action at this time.
0 commit comments