mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 20:09:48 -05:00
refactor(test): use tests
module for tests
This commit is contained in:
parent
e7ad855f4d
commit
cc385d1aca
5 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ pub fn check(host: &str, headers: &HeaderMap, token: Option<String>) -> Result<(
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use actix_web::http::HeaderValue;
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ impl Config {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use std::env;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ impl ContentDisposition {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -118,7 +118,7 @@ impl Paste {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::random::{RandomURLConfig, RandomURLType};
|
||||
use std::env;
|
||||
|
|
|
@ -54,7 +54,7 @@ impl Default for RandomURLType {
|
|||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue