mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-17 08:34:54 -04:00
Rename getNoteContentByNote to getNoteContent
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
8ec756afb4
commit
8b75867664
4 changed files with 8 additions and 8 deletions
src/notes
|
@ -180,7 +180,7 @@ describe('NotesService', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('getNoteContentByNote', () => {
|
||||
describe('getNoteContent', () => {
|
||||
it('works', async () => {
|
||||
const content = 'testContent';
|
||||
jest
|
||||
|
@ -189,7 +189,7 @@ describe('NotesService', () => {
|
|||
const newNote = await service.createNote(content);
|
||||
const revisions = await newNote.revisions;
|
||||
jest.spyOn(revisionRepo, 'findOne').mockResolvedValueOnce(revisions[0]);
|
||||
service.getNoteContentByNote(newNote).then((result) => {
|
||||
service.getNoteContent(newNote).then((result) => {
|
||||
expect(result).toEqual(content);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue