Commit bd6446ac authored by Robert Knight's avatar Robert Knight

Include waiting-to-anchor annotations in `threadAnnotations` tests

These should not appear on any tab or be included in `tabCounts` output.
parent e7c1710d
......@@ -148,6 +148,12 @@ describe('sidebar/helpers/thread-annotations', () => {
annotationForTab('note'),
annotationForTab('note'),
annotationForTab('orphan'),
// Annotation waiting to anchor
{
...annotationFixtures.defaultAnnotation(),
$orphan: undefined,
},
],
showTabs: true,
expectedCounts: {
......@@ -230,6 +236,12 @@ describe('sidebar/helpers/thread-annotations', () => {
...annotationFixtures.defaultAnnotation(),
$orphan: true,
},
// Annotation that is still anchoring. This should not appear on
// any tab.
{
...annotationFixtures.defaultAnnotation(),
$orphan: undefined,
},
];
fakeBuildThread.returns({
children: fakeThreadState.annotations.map(annotation => ({
......
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