Skip to content

Commit d55b383

Browse files
committed
test: make sure tests succeed in different versions
There's a `Visual-Studio-Code---Insiders/` that didn't fit previous test that was checking for `Visual-Studio-Code/` (slash included). Rename some of the errors to make it clearer if there's one failing too.
1 parent da91360 commit d55b383

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/test/lambda/remoteDebugging/ldkClient.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ describe('Remote Debugging User-Agent test', () => {
112112
// Check for presence of other user agent components without checking specific values
113113
assert(
114114
userAgent.includes('AWS-Toolkit-For-VSCode/'),
115-
`User-Agent should include AWS-Toolkit-For-VSCode, got: ${userAgent}`
115+
`User-Agent should include AWS-Toolkit-For-VSCode/, got: ${userAgent}`
116116
)
117117
assert(
118-
userAgent.includes('Visual-Studio-Code/'),
118+
userAgent.includes('Visual-Studio-Code'),
119119
`User-Agent should include Visual-Studio-Code, got: ${userAgent}`
120120
)
121-
assert(userAgent.includes('ClientId/'), `User-Agent should include ClientId, got: ${userAgent}`)
121+
assert(userAgent.includes('ClientId/'), `User-Agent should include ClientId/, got: ${userAgent}`)
122122
})
123123
}
124124
})

0 commit comments

Comments
 (0)