Refactoring #21
@@ -64,8 +64,10 @@ mod tests {
|
|||||||
fn test_get_app_env() {
|
fn test_get_app_env() {
|
||||||
let result = async_std::task::block_on(icarus_envy::environment::get_app_env());
|
let result = async_std::task::block_on(icarus_envy::environment::get_app_env());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result, "development",
|
result,
|
||||||
"{} does not match {:?}", icarus_envy::keys::APP_ENV,
|
"development",
|
||||||
|
"{} does not match {:?}",
|
||||||
|
icarus_envy::keys::APP_ENV,
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -74,8 +76,10 @@ mod tests {
|
|||||||
fn test_get_backend_port() {
|
fn test_get_backend_port() {
|
||||||
let result = async_std::task::block_on(icarus_envy::environment::get_backend_port());
|
let result = async_std::task::block_on(icarus_envy::environment::get_backend_port());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result, "8001",
|
result,
|
||||||
"{} does not match {:?}", icarus_envy::keys::BACKEND_PORT,
|
"8001",
|
||||||
|
"{} does not match {:?}",
|
||||||
|
icarus_envy::keys::BACKEND_PORT,
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -83,8 +87,10 @@ mod tests {
|
|||||||
fn test_get_frontend_url() {
|
fn test_get_frontend_url() {
|
||||||
let result = async_std::task::block_on(icarus_envy::environment::get_frontend_url());
|
let result = async_std::task::block_on(icarus_envy::environment::get_frontend_url());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result, "http://localhost:4200",
|
result,
|
||||||
"{} does not match {:?}", icarus_envy::keys::FRONTEND_URL,
|
"http://localhost:4200",
|
||||||
|
"{} does not match {:?}",
|
||||||
|
icarus_envy::keys::FRONTEND_URL,
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -92,8 +98,10 @@ mod tests {
|
|||||||
fn test_get_rust_log() {
|
fn test_get_rust_log() {
|
||||||
let result = async_std::task::block_on(icarus_envy::environment::get_rust_log());
|
let result = async_std::task::block_on(icarus_envy::environment::get_rust_log());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result, "debug",
|
result,
|
||||||
"{} does not match {:?}", icarus_envy::keys::RUST_LOG,
|
"debug",
|
||||||
|
"{} does not match {:?}",
|
||||||
|
icarus_envy::keys::RUST_LOG,
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -101,8 +109,10 @@ mod tests {
|
|||||||
fn test_get_allowed_origins() {
|
fn test_get_allowed_origins() {
|
||||||
let result = async_std::task::block_on(icarus_envy::environment::get_allowed_origins());
|
let result = async_std::task::block_on(icarus_envy::environment::get_allowed_origins());
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
result, "https://soaricarus.com,https://www.soaricarus.com",
|
result,
|
||||||
"{} does not match {:?}", icarus_envy::keys::ALLOWED_ORIGINS,
|
"https://soaricarus.com,https://www.soaricarus.com",
|
||||||
|
"{} does not match {:?}",
|
||||||
|
icarus_envy::keys::ALLOWED_ORIGINS,
|
||||||
result
|
result
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user