Remove unused getNoteContentByIdOrAlias

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2021-02-22 22:31:02 +01:00 committed by David Mehren
parent 8873ac316a
commit 8ec756afb4
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
2 changed files with 0 additions and 27 deletions

View file

@ -575,22 +575,6 @@ describe('NotesService', () => {
});
});
describe('getNoteContentByIdOrAlias', () => {
it('works', async () => {
const content = 'testContent';
jest
.spyOn(noteRepo, 'save')
.mockImplementation(async (note: Note): Promise<Note> => note);
const newNote = await service.createNote(content);
const revisions = await newNote.revisions;
jest.spyOn(noteRepo, 'findOne').mockResolvedValueOnce(newNote);
jest.spyOn(revisionRepo, 'findOne').mockResolvedValueOnce(revisions[0]);
service.getNoteContentByIdOrAlias('noteThatExists').then((result) => {
expect(result).toEqual(content);
});
});
});
describe('toTagList', () => {
it('works', async () => {
const note = {} as Note;