Skip to content
Snippets Groups Projects
Commit f8f957b0 authored by imranasghar96@hotmail.com's avatar imranasghar96@hotmail.com
Browse files

Update tests

parent 3afafb32
No related branches found
No related tags found
No related merge requests found
......@@ -78,14 +78,14 @@ describe('WebAnnotation', () => {
]);
});
it('with text only', () => {
subject = createSubject({ tags: null });
subject = createSubject({ image: null, tags: null });
expect(subject.createBody()).toEqual({
type: 'TextualBody',
value: 'body',
});
});
it('with tags only', () => {
subject = createSubject({ body: null });
subject = createSubject({ body: null, image: null });
expect(subject.createBody()).toEqual({
purpose: 'tagging',
type: 'TextualBody',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment