Commit 097ce55a authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Update `pageNote` fixtures

- Fix naming of `$highlight` property
- Add `newPageNote` fixture
parent 7314300e
......@@ -104,6 +104,18 @@ export function newHighlight() {
};
}
/** Return an annotation domain model object for a new page note.
*/
export function newPageNote() {
return {
$highlight: undefined,
target: [{ source: 'http://example.org' }],
references: [],
text: '',
tags: [],
};
}
/** Return an annotation domain model object for an existing annotation
* received from the server.
*/
......@@ -137,7 +149,8 @@ export function oldHighlight() {
*/
export function oldPageNote() {
return {
highlight: undefined,
id: 'note_id',
$highlight: undefined,
target: [{ source: 'http://example.org' }],
references: [],
text: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment