(opts, layout)
| 51 | var fullData; |
| 52 | |
| 53 | function _supply(opts, layout) { |
| 54 | gd = {}; |
| 55 | opts = Array.isArray(opts) ? opts : [opts]; |
| 56 | |
| 57 | gd.data = opts.map(function (o) { |
| 58 | return Lib.extendFlat({ type: 'sunburst' }, o || {}); |
| 59 | }); |
| 60 | gd.layout = layout || {}; |
| 61 | |
| 62 | supplyAllDefaults(gd); |
| 63 | fullData = gd._fullData; |
| 64 | } |
| 65 | |
| 66 | it('should set *visible:false* when *labels* or *parents* is missing', function () { |
| 67 | _supply([{ labels: [1], parents: [''] }, { labels: [1] }, { parents: [''] }]); |
no outgoing calls
no test coverage detected
searching dependent graphs…