diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2019-04-15 12:10:40 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-04-15 12:10:40 +0900 |
| commit | 94f8a145eca5e1ed6b979c2c237e399cc7a96083 (patch) | |
| tree | 96380b38f12fd6d1763154edd6e5460fc93a975a /test | |
| parent | Clean up (diff) | |
| download | sharkey-94f8a145eca5e1ed6b979c2c237e399cc7a96083.tar.gz sharkey-94f8a145eca5e1ed6b979c2c237e399cc7a96083.tar.bz2 sharkey-94f8a145eca5e1ed6b979c2c237e399cc7a96083.zip | |
Better permisson Fix #2341 (#4611)
* Better permisson Fix #2341
* add kinds.ts
* test
* fix
* v11
* fix
Diffstat (limited to 'test')
| -rw-r--r-- | test/api.ts | 12 | ||||
| -rw-r--r-- | test/mfm.ts | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/api.ts b/test/api.ts index d14b286482..318aa84248 100644 --- a/test/api.ts +++ b/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); + }); + }); }); */ diff --git a/test/mfm.ts b/test/mfm.ts index 69260a5415..8098102e92 100644 --- a/test/mfm.ts +++ b/test/mfm.ts @@ -1141,7 +1141,7 @@ describe('MFM', () => { it('exlude emotes', () => { const tokens = parse('*.*'); assert.deepStrictEqual(tokens, [ - text("*.*"), + text('*.*'), ]); }); |