roc/crates/cli/tests/module_params/ImportInExpect.roc
2024-11-05 19:13:29 -03:00

15 lines
325 B
Text

module []
https = \url -> "https://$(url)"
expect
import Api { appId: "one", protocol: https }
Api.baseUrl == "https://api.example.com/one"
expect
import Api { appId: "two", protocol: https }
Api.getUser 1 == "https://api.example.com/two/users/1"
expect
import NoParams
NoParams.hello == "hello!"