2021-02-01 16:55:49 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
|
|
|
export const testNoteId = 'test'
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2021-11-19 12:04:04 -05:00
|
|
|
cy.intercept(`/mock-backend/api/private/notes/${testNoteId}-get`, {
|
|
|
|
content: '',
|
|
|
|
metadata: {
|
|
|
|
id: 'mock_note_id',
|
|
|
|
alias: 'mockNote',
|
|
|
|
version: 2,
|
|
|
|
viewCount: 0,
|
|
|
|
updateTime: '2021-04-24T09:27:51.000Z',
|
|
|
|
updateUser: {
|
|
|
|
userName: 'test',
|
|
|
|
displayName: 'Testy',
|
|
|
|
photo: '',
|
|
|
|
email: ''
|
2021-05-01 17:01:42 -04:00
|
|
|
},
|
2021-11-19 12:04:04 -05:00
|
|
|
createTime: '2021-04-24T09:27:51.000Z',
|
|
|
|
editedBy: []
|
2021-05-01 17:01:42 -04:00
|
|
|
}
|
2021-02-01 16:55:49 -05:00
|
|
|
})
|
|
|
|
})
|