* Better permisson Fix #2341 * add kinds.ts * test * fix * v11 * fix
This commit is contained in:
parent
b357afa30a
commit
94f8a145ec
19 changed files with 183 additions and 49 deletions
12
test/api.ts
12
test/api.ts
|
@ -18,6 +18,8 @@ import * as assert from 'assert';
|
|||
import * as childProcess from 'child_process';
|
||||
import { async, signup, request, post, react, uploadFile } from './utils';
|
||||
|
||||
import { kinds } from '../src/server/api/kinds';
|
||||
|
||||
describe('API', () => {
|
||||
let p: childProcess.ChildProcess;
|
||||
|
||||
|
@ -792,7 +794,7 @@ describe('API', () => {
|
|||
parentId: folderA.id
|
||||
}, arisugawa);
|
||||
|
||||
expect(res).have.status(400);
|
||||
assert.strictEqual(res.status, 400);
|
||||
}));
|
||||
|
||||
it('存在しない親フォルダを設定できない', async(async () => {
|
||||
|
@ -965,5 +967,13 @@ describe('API', () => {
|
|||
assert.strictEqual(res.body[0].id, alicePost.id);
|
||||
}));
|
||||
});
|
||||
|
||||
describe('kinds', () => {
|
||||
it('登録されていないパーミッションを利用しているAPIがない', () => {
|
||||
const res = kinds();
|
||||
|
||||
assert.strictEqual(typeof res === 'object', true);
|
||||
});
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue