@@ -13,7 +13,7 @@ type TestVariables = Readonly<{
13
13
admin_password ?: string ;
14
14
} > ;
15
15
16
- function findWindowsRpdScript ( state : TerraformState ) : string | null {
16
+ function findWindowsRdpScript ( state : TerraformState ) : string | null {
17
17
for ( const resource of state . resources ) {
18
18
const isRdpScriptResource =
19
19
resource . type === "coder_script" && resource . name === "windows-rdp" ;
@@ -50,8 +50,8 @@ describe("Web RDP", async () => {
50
50
resource_id : "bar" ,
51
51
} ) ;
52
52
53
- const lines = findWindowsRpdScript ( state )
54
- . split ( "\n" )
53
+ const lines = findWindowsRdpScript ( state )
54
+ ? .split ( "\n" )
55
55
. filter ( Boolean )
56
56
. map ( ( line ) => line . trim ( ) ) ;
57
57
@@ -96,7 +96,7 @@ describe("Web RDP", async () => {
96
96
} ,
97
97
) ;
98
98
99
- const defaultRdpScript = findWindowsRpdScript ( defaultState ) ;
99
+ const defaultRdpScript = findWindowsRdpScript ( defaultState ) ;
100
100
expect ( defaultRdpScript ) . toBeString ( ) ;
101
101
102
102
const { username : defaultUsername , password : defaultPassword } =
@@ -118,7 +118,7 @@ describe("Web RDP", async () => {
118
118
} ,
119
119
) ;
120
120
121
- const customRdpScript = findWindowsRpdScript ( customizedState ) ;
121
+ const customRdpScript = findWindowsRdpScript ( customizedState ) ;
122
122
expect ( customRdpScript ) . toBeString ( ) ;
123
123
124
124
const { username : customUsername , password : customPassword } =
0 commit comments