mirror of
https://github.com/actix/actix-website
synced 2025-01-22 16:15:56 +01:00
Include proper import/use example in testing docs, unit test section. (#217)
This commit is contained in:
parent
56c5cbe615
commit
501d52b485
@ -20,7 +20,7 @@ fn main() {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use actix_web::test;
|
use actix_web::{http, test};
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn test_index_ok() {
|
async fn test_index_ok() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user