(msg, t, exp)
| 204 | |
| 205 | describe('q1/median/q3 API signature', function() { |
| 206 | function _check(msg, t, exp) { |
| 207 | var gd = { data: [Lib.extendFlat({type: 'box'}, t)] }; |
| 208 | supplyAllDefaults(gd); |
| 209 | for(var k in exp) { |
| 210 | var actual = gd._fullData[0][k]; |
| 211 | if(Array.isArray(exp[k])) { |
| 212 | expect(actual).toEqual(exp[k], msg + ' | ' + k); |
| 213 | } else { |
| 214 | expect(actual).toBe(exp[k], msg + ' | ' + k); |
| 215 | } |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | it('should result in correct orientation results', function() { |
| 220 | _check('insufficient (no median)', { |
no outgoing calls
no test coverage detected
searching dependent graphs…