feat: fix test
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c3739c1bc1
commit
44fbf1f362
@ -129,7 +129,7 @@ impl Archive {
|
||||
}
|
||||
|
||||
pub struct ArchiveFile {
|
||||
content: Vec<u8>,
|
||||
pub content: Vec<u8>,
|
||||
}
|
||||
|
||||
impl From<Vec<u8>> for ArchiveFile {
|
||||
|
@ -67,7 +67,7 @@ pub mod models;
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::services::archive::MockArchive;
|
||||
use crate::services::archive::{ArchiveFile, MockArchive};
|
||||
use crate::services::domain_events::MockDomainEvents;
|
||||
use crate::services::file_reader::{Files, MockFileReader};
|
||||
use crate::services::file_store::MockFileStore;
|
||||
@ -95,6 +95,11 @@ mod test {
|
||||
.returning(|_| Ok(Files::default()));
|
||||
|
||||
let mut archive = MockArchive::default();
|
||||
archive.expect_create_archive().times(1).returning(|_| {
|
||||
Ok(ArchiveFile {
|
||||
content: Vec::new(),
|
||||
})
|
||||
});
|
||||
|
||||
let releaser_manager = ReleaseManager::new(file_reader, file_store, archive, domain_events);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user