mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Smoke test
This commit is contained in:
parent
77dacfb808
commit
39e8711996
1 changed files with 23 additions and 0 deletions
|
@ -627,4 +627,27 @@ mod tests {
|
||||||
);
|
);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mod update_memory_state {
|
||||||
|
use crate::collection::CollectionBuilder;
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn smoke() {
|
||||||
|
let mut collection = CollectionBuilder::default().build().unwrap();
|
||||||
|
let entry = UpdateMemoryStateEntry {
|
||||||
|
req: None,
|
||||||
|
search: SearchNode::WholeCollection,
|
||||||
|
ignore_before: TimestampMillis(0),
|
||||||
|
};
|
||||||
|
|
||||||
|
collection
|
||||||
|
.transact(Op::UpdateDeckConfig, |collection| {
|
||||||
|
collection.update_memory_state(vec![entry]).unwrap();
|
||||||
|
Ok(())
|
||||||
|
})
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue