mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
test: psql fix
This commit is contained in:
@@ -269,20 +269,18 @@ describe('FEPs', () => {
|
||||
});
|
||||
|
||||
it('should be called when a post is moved to another topic', async () => {
|
||||
const [{ topicData: topic1 }, { topicData: topic2 }] = await Promise.all([
|
||||
topics.post({
|
||||
uid,
|
||||
cid,
|
||||
title: utils.generateUUID(),
|
||||
content: utils.generateUUID(),
|
||||
}),
|
||||
topics.post({
|
||||
uid,
|
||||
cid,
|
||||
title: utils.generateUUID(),
|
||||
content: utils.generateUUID(),
|
||||
}),
|
||||
]);
|
||||
const topic1 = await topics.post({
|
||||
uid,
|
||||
cid,
|
||||
title: utils.generateUUID(),
|
||||
content: utils.generateUUID(),
|
||||
});
|
||||
const topic2 = await topics.post({
|
||||
uid,
|
||||
cid,
|
||||
title: utils.generateUUID(),
|
||||
content: utils.generateUUID(),
|
||||
});
|
||||
|
||||
assert(topic1 && topic2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user