diff --git a/src/api/annotation/AnnotationAPISpec.js b/src/api/annotation/AnnotationAPISpec.js index d03d93b127..5597e024f5 100644 --- a/src/api/annotation/AnnotationAPISpec.js +++ b/src/api/annotation/AnnotationAPISpec.js @@ -284,7 +284,6 @@ describe('The Annotation API', () => { }; comparator = (t1, t2) => t1.fooTarget.foo === t2.fooTarget.bar; }); - }); it('can add a comparator function', () => { const notebookAnnotationType = openmct.annotation.ANNOTATION_TYPES.NOTEBOOK; @@ -297,40 +296,6 @@ describe('The Annotation API', () => { openmct.annotation.areAnnotationTargetsEqual(notebookAnnotationType, targets, otherTargets) ).toBeTrue(); // the comparator should make these equal }); - it('can create a tag', async () => { - const annotationObject = await openmct.annotation.create(tagCreationArguments); - expect(annotationObject).toBeDefined(); - expect(annotationObject.type).toEqual('annotation'); - expect(annotationObject.tags).toContain('aWonderfulTag'); - }); - it('can delete a tag', async () => { - const annotationObject = await openmct.annotation.create(tagCreationArguments); - expect(annotationObject).toBeDefined(); - openmct.annotation.deleteAnnotations([annotationObject]); - expect(annotationObject._deleted).toBeTrue(); - }); - it('can remove all tags', async () => { - const annotationObject = await openmct.annotation.create(tagCreationArguments); - expect(annotationObject).toBeDefined(); - expect(() => { - openmct.annotation.deleteAnnotations([annotationObject]); - }).not.toThrow(); - expect(annotationObject._deleted).toBeTrue(); - }); - it('can add/delete/add a tag', async () => { - let annotationObject = await openmct.annotation.create(tagCreationArguments); - expect(annotationObject).toBeDefined(); - expect(annotationObject.type).toEqual('annotation'); - expect(annotationObject.tags).toContain('aWonderfulTag'); - openmct.annotation.deleteAnnotations([annotationObject]); - expect(annotationObject._deleted).toBeTrue(); - annotationObject = await openmct.annotation.create(tagCreationArguments); - expect(annotationObject).toBeDefined(); - expect(annotationObject.type).toEqual('annotation'); - expect(annotationObject.tags).toContain('aWonderfulTag'); - expect(annotationObject._deleted).toBeFalse(); - }); - }); it('falls back to deep equality check if no comparator functions', () => { const annotationTypeWithoutComparator = openmct.annotation.ANNOTATION_TYPES.GEOSPATIAL; @@ -348,4 +313,4 @@ describe('The Annotation API', () => { expect(areNotEqual).toBeFalse(); }); }); -}); +}); \ No newline at end of file