fixed tests for DockerHub
This commit is contained in:
parent
c0d376c79f
commit
bc09317d4b
@ -88,13 +88,16 @@ impl DockerHub {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::repository::dockerhub::Repo;
|
use crate::repository::dockerhub::DockerHub;
|
||||||
#[test]
|
#[test]
|
||||||
fn test_check_repo() {
|
fn test_check_repo() {
|
||||||
assert_eq!(Repo::check_repo("nginx").unwrap(), "library/nginx");
|
assert_eq!(DockerHub::check_repo("nginx").unwrap(), "library/nginx");
|
||||||
assert_eq!(Repo::check_repo("library/nginx").unwrap(), "library/nginx");
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
Repo::check_repo("rocketchat/rocket.chat").unwrap(),
|
DockerHub::check_repo("library/nginx").unwrap(),
|
||||||
|
"library/nginx"
|
||||||
|
);
|
||||||
|
assert_eq!(
|
||||||
|
DockerHub::check_repo("rocketchat/rocket.chat").unwrap(),
|
||||||
"rocketchat/rocket.chat"
|
"rocketchat/rocket.chat"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user