summaryrefslogtreecommitdiff
path: root/packages/backend/test/e2e/endpoints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/test/e2e/endpoints.ts')
-rw-r--r--packages/backend/test/e2e/endpoints.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/backend/test/e2e/endpoints.ts b/packages/backend/test/e2e/endpoints.ts
index bfd0b0272d..d75549c816 100644
--- a/packages/backend/test/e2e/endpoints.ts
+++ b/packages/backend/test/e2e/endpoints.ts
@@ -710,6 +710,18 @@ describe('Endpoints', () => {
assert.strictEqual(res.status, 400);
});
+ test('不正なファイル名で怒られる', async () => {
+ const file = (await uploadFile(alice)).body;
+ const newName = '';
+
+ const res = await api('/drive/files/update', {
+ fileId: file.id,
+ name: newName,
+ }, alice);
+
+ assert.strictEqual(res.status, 400);
+ });
+
test('間違ったIDで怒られる', async () => {
const res = await api('/drive/files/update', {
fileId: 'kyoppie',