This commit is contained in:
realaravinth
2021-05-02 16:44:54 +05:30
parent 5361e9b43a
commit ef778687e0
15 changed files with 75 additions and 426 deletions

View File

@@ -92,13 +92,12 @@ mod tests {
use actix_web::{http::StatusCode, test, App};
use super::*;
use crate::api::v1::new_services;
use crate::api::v1::services;
use crate::*;
#[actix_rt::test]
async fn build_details_works() {
// const GET_URI: &str = "/api/v1/meta/build";
let mut app = test::init_service(App::new().configure(new_services)).await;
let mut app = test::init_service(App::new().configure(services)).await;
let resp = test::call_service(
&mut app,
@@ -112,8 +111,6 @@ mod tests {
#[actix_rt::test]
async fn health_works() {
// const GET_URI: &str = "/api/v1/meta/health";
println!("{}", V1_API_ROUTES.meta.health);
let data = Data::new().await;
let mut app = get_app!(data).await;