summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-09-27 20:18:50 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-09-28 01:00:09 -0400
commit1458ff7be5d883444943090cb636e9343487d03e (patch)
treeadb410ce9245dc2a1562fc370f2398cab35e7507 /src/test
parenteff129bc1f29bcb1b2b9d10c6b49ab886edc83d6 (diff)
Send created events when channels are added.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fixtures/channel.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/fixtures/channel.rs b/src/test/fixtures/channel.rs
index 0558395..8744470 100644
--- a/src/test/fixtures/channel.rs
+++ b/src/test/fixtures/channel.rs
@@ -4,12 +4,12 @@ use faker_rand::{
};
use rand;
-use crate::{app::App, repo::channel::Channel};
+use crate::{app::App, clock::RequestedAt, repo::channel::Channel};
-pub async fn create(app: &App) -> Channel {
+pub async fn create(app: &App, created_at: &RequestedAt) -> Channel {
let name = propose();
app.channels()
- .create(&name)
+ .create(&name, created_at)
.await
.expect("should always succeed if the channel is actually new")
}