Skip to content

Commit

Permalink
updated tests to allow for new @see annotation group property
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-hotchkiss authored and valeriangalliat committed Apr 18, 2022
1 parent 96552c1 commit 36a4552
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/annotations/see.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('#see', function () {
})

it('should rewrite the .toJSON method', function () {
var data = [{ description: 'desc', context: { name: 'name' } }, { see: [see.parse('name')] }]
var data = [{ description: 'desc', context: { name: 'name' }, group: 'test' }, { see: [see.parse('name')] }]
see.resolve(data)
assert.deepEqual(data[1].see.toJSON(), [{ description: 'desc', context: { name: 'name' } }])
assert.deepEqual(data[1].see.toJSON(), [{ description: 'desc', context: { name: 'name' }, group: 'test'}])
})
})
5 changes: 4 additions & 1 deletion test/data/expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,10 @@
"start": 77,
"end": 77
}
}
},
"group": [
"test"
]
}
],
"since": [
Expand Down

0 comments on commit 36a4552

Please sign in to comment.