mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
PrivateAPI: Rename HistoryEntryCreationDto to HistoryEntryImportDto
As the DTO is used to import a whole list of history entries rather than creating a single history entry (there is no way of doing that at the moment) Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
fa724c2603
commit
1154894876
3 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@ import { UsersModule } from '../../src/users/users.module';
|
|||
import { PrivateApiModule } from '../../src/api/private/private-api.module';
|
||||
import { HistoryService } from '../../src/history/history.service';
|
||||
import { Note } from '../../src/notes/note.entity';
|
||||
import { HistoryEntryCreationDto } from '../../src/history/history-entry-creation.dto';
|
||||
import { HistoryEntryImportDto } from '../../src/history/history-entry-import.dto';
|
||||
|
||||
describe('History', () => {
|
||||
let app: INestApplication;
|
||||
|
@ -100,7 +100,7 @@ describe('History', () => {
|
|||
});
|
||||
|
||||
it('POST /me/history', async () => {
|
||||
const postEntryDto = new HistoryEntryCreationDto();
|
||||
const postEntryDto = new HistoryEntryImportDto();
|
||||
postEntryDto.note = note2.alias;
|
||||
await request(app.getHttpServer())
|
||||
.post('/me/history')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue