()
| 203 | }); |
| 204 | |
| 205 | function countAnnotations() { |
| 206 | // also check that no annotations are empty objects |
| 207 | (gd.layout.annotations || []).forEach(function(ann, i) { |
| 208 | expect(JSON.stringify(ann)).not.toBe(JSON.stringify({}), i); |
| 209 | }); |
| 210 | return d3SelectAll('g.annotation').size(); |
| 211 | } |
| 212 | |
| 213 | function assertText(index, expected) { |
| 214 | var query = '.annotation[data-index="' + index + '"]'; |
no outgoing calls
no test coverage detected
searching dependent graphs…