Run immediate browsing sessions with enabled votes
This commit is contained in:
1 parent
643c775813
commit
540590f43e
11 files changed
+40
-19
No files matched your search
@@ -290,14 +290,14 @@ describe('growth route', () => {
|
||||
});
|
||||
|
||||
describe('POST /api/growth/:accountId/browsing/run', () => {
|
||||
it('runs one immediate simulation through the active account runtime', async () => {
|
||||
it('runs one immediate session through the active account runtime', async () => {
|
||||
const { status, json } = await call(app, 'POST', `/api/growth/${ENCODED}/browsing/run`);
|
||||
|
||||
expect(status).toBe(200);
|
||||
GrowthAccountResponseSchema.parse(json);
|
||||
expect(runNow).toHaveBeenCalledOnce();
|
||||
expect(pushed).toContainEqual({
|
||||
level: 'info', message: 'Browsing simulation run manually for u/grower; no Reddit vote was submitted',
|
||||
level: 'info', message: 'Browsing session run manually for u/grower',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user