mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 08:04:45 -04:00
fix: increase test coverage
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
dad60a25ea
commit
d73bbcaeff
3 changed files with 47 additions and 16 deletions
|
@ -93,6 +93,15 @@ describe('Media', () => {
|
|||
.expect('Content-Type', /json/)
|
||||
.expect(500);
|
||||
});
|
||||
it('no file uploaded', async () => {
|
||||
await request(testSetup.app.getHttpServer())
|
||||
.post('/api/v2/media')
|
||||
.set('Authorization', `Bearer ${testSetup.authTokens[0].secret}`)
|
||||
.set('HedgeDoc-Note', 'testAlias1')
|
||||
.expect('Content-Type', /json/)
|
||||
.expect(400);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await ensureDeleted(uploadPath);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue