Skip to content

Commit 0f58a8d

Browse files
committed
Fix indentation on the annotations file
1 parent d2d9e6c commit 0f58a8d

1 file changed

Lines changed: 49 additions & 49 deletions

File tree

specs/annotations/standard.spec.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,52 +7,52 @@
77
* We compare the exact output.
88
*/
99

10-
describe('Drawing functions', () => {
11-
it('should draw a closed annotation', () => {
12-
const doc = jsPDF()
13-
doc.createAnnotation({
14-
type: 'text',
15-
title: 'note',
16-
bounds: {
17-
x: 10,
18-
y: 10,
19-
w: 200,
20-
h: 80
21-
},
22-
contents: 'This is text annotation (closed by default)',
23-
open: false
24-
})
25-
comparePdf(doc.output(), 'closed.pdf', 'annotations')
26-
})
27-
it('should draw an open annotation', () => {
28-
const doc = jsPDF()
29-
doc.createAnnotation({
30-
type: 'text',
31-
title: 'note',
32-
bounds: {
33-
x: 10,
34-
y: 10,
35-
w: 200,
36-
h: 80
37-
},
38-
contents: 'This is text annotation (open by default)',
39-
open: true
40-
})
41-
comparePdf(doc.output(), 'open.pdf', 'annotations')
42-
})
43-
it('should draw a free text annotation', () => {
44-
const doc = jsPDF()
45-
doc.createAnnotation({
46-
type: 'freetext',
47-
bounds: {
48-
x: 0,
49-
y: 10,
50-
w: 200,
51-
h: 20
52-
},
53-
contents: 'This is a freetext annotation',
54-
color: '#ff0000'
55-
})
56-
comparePdf(doc.output(), 'freetext.pdf', 'annotations')
57-
})
58-
})
10+
describe('Drawing functions', () => {
11+
it('should draw a closed annotation', () => {
12+
const doc = jsPDF()
13+
doc.createAnnotation({
14+
type: 'text',
15+
title: 'note',
16+
bounds: {
17+
x: 10,
18+
y: 10,
19+
w: 200,
20+
h: 80
21+
},
22+
contents: 'This is text annotation (closed by default)',
23+
open: false
24+
})
25+
comparePdf(doc.output(), 'closed.pdf', 'annotations')
26+
})
27+
it('should draw an open annotation', () => {
28+
const doc = jsPDF()
29+
doc.createAnnotation({
30+
type: 'text',
31+
title: 'note',
32+
bounds: {
33+
x: 10,
34+
y: 10,
35+
w: 200,
36+
h: 80
37+
},
38+
contents: 'This is text annotation (open by default)',
39+
open: true
40+
})
41+
comparePdf(doc.output(), 'open.pdf', 'annotations')
42+
})
43+
it('should draw a free text annotation', () => {
44+
const doc = jsPDF()
45+
doc.createAnnotation({
46+
type: 'freetext',
47+
bounds: {
48+
x: 0,
49+
y: 10,
50+
w: 200,
51+
h: 20
52+
},
53+
contents: 'This is a freetext annotation',
54+
color: '#ff0000'
55+
})
56+
comparePdf(doc.output(), 'freetext.pdf', 'annotations')
57+
})
58+
})

0 commit comments

Comments
 (0)