mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: topic reordering tests
This commit is contained in:
@@ -100,6 +100,8 @@ paths:
|
|||||||
$ref: 'write/topics/tid/tags.yaml'
|
$ref: 'write/topics/tid/tags.yaml'
|
||||||
/topics/{tid}/thumbs:
|
/topics/{tid}/thumbs:
|
||||||
$ref: 'write/topics/tid/thumbs.yaml'
|
$ref: 'write/topics/tid/thumbs.yaml'
|
||||||
|
/topics/{tid}/thumbs/order:
|
||||||
|
$ref: 'write/topics/tid/thumbs/order.yaml'
|
||||||
/topics/{tid}/events:
|
/topics/{tid}/events:
|
||||||
$ref: 'write/topics/tid/events.yaml'
|
$ref: 'write/topics/tid/events.yaml'
|
||||||
/posts/{pid}:
|
/posts/{pid}:
|
||||||
|
|||||||
@@ -176,6 +176,12 @@ describe('API', async () => {
|
|||||||
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.txt'), 'w'));
|
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.txt'), 'w'));
|
||||||
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.png'), 'w'));
|
fs.closeSync(fs.openSync(path.resolve(nconf.get('upload_path'), 'files/test.png'), 'w'));
|
||||||
|
|
||||||
|
// Associate thumb with topic to test thumb reordering
|
||||||
|
await topics.thumbs.associate({
|
||||||
|
id: 2,
|
||||||
|
path: 'files/test.png',
|
||||||
|
});
|
||||||
|
|
||||||
const socketUser = require('../src/socket.io/user');
|
const socketUser = require('../src/socket.io/user');
|
||||||
const socketAdmin = require('../src/socket.io/admin');
|
const socketAdmin = require('../src/socket.io/admin');
|
||||||
// export data for admin user
|
// export data for admin user
|
||||||
|
|||||||
Reference in New Issue
Block a user