Skip to content

Commit ec2c8ed

Browse files
committed
fix: update null check and remove typo
1 parent 78f91a5 commit ec2c8ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

windows-rdp/main.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type TestVariables = Readonly<{
1313
admin_password?: string;
1414
}>;
1515

16-
function findWindowsRpdScript(state: TerraformState): string | null {
16+
function findWindowsRdpScript(state: TerraformState): string | null {
1717
for (const resource of state.resources) {
1818
const isRdpScriptResource =
1919
resource.type === "coder_script" && resource.name === "windows-rdp";
@@ -50,8 +50,8 @@ describe("Web RDP", async () => {
5050
resource_id: "bar",
5151
});
5252

53-
const lines = findWindowsRpdScript(state)
54-
.split("\n")
53+
const lines = findWindowsRdpScript(state)
54+
?.split("\n")
5555
.filter(Boolean)
5656
.map((line) => line.trim());
5757

@@ -96,7 +96,7 @@ describe("Web RDP", async () => {
9696
},
9797
);
9898

99-
const defaultRdpScript = findWindowsRpdScript(defaultState);
99+
const defaultRdpScript = findWindowsRdpScript(defaultState);
100100
expect(defaultRdpScript).toBeString();
101101

102102
const { username: defaultUsername, password: defaultPassword } =
@@ -118,7 +118,7 @@ describe("Web RDP", async () => {
118118
},
119119
);
120120

121-
const customRdpScript = findWindowsRpdScript(customizedState);
121+
const customRdpScript = findWindowsRdpScript(customizedState);
122122
expect(customRdpScript).toBeString();
123123

124124
const { username: customUsername, password: customPassword } =

0 commit comments

Comments
 (0)