We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0933bb commit 3f855d1Copy full SHA for 3f855d1
src/Tests/Config.fs
@@ -152,18 +152,21 @@ let [<TestCase>] ``Header Transformer``() =
152
let urlSuffix1 = "suffix1"
153
let urlSuffix2 = "suffix2"
154
155
- let request =
+ let httpSpecial =
156
let transformWith suffix =
157
fun (header: Header) ->
158
let address = header.target.address.Value
159
{ header with target.address = Some $"{address}{suffix}" }
160
-
161
http {
162
- GET url
163
config_transformHeader (transformWith urlSuffix1)
164
config_transformHeader (transformWith urlSuffix2)
165
}
166
167
- request.header.target.address
+ httpSpecial {
+ GET url
+ }
168
+ |> Request.toRequestAndMessage
169
+ |> fst
170
+ |> _.header.target.address
171
|> Option.defaultValue ""
172
|> should equal $"{url}{urlSuffix1}{urlSuffix2}"
0 commit comments