(style, width)
| 3 | import derivedFragmentStyles from 'dash-table/derived/table/fragmentStyles'; |
| 4 | |
| 5 | function validate(style, width) { |
| 6 | expect(style.length).to.equal(2); |
| 7 | expect(style[0]).to.not.equal(undefined); |
| 8 | expect(style[1]).to.not.equal(undefined); |
| 9 | expect(style[0].length).to.equal(2); |
| 10 | expect(style[1].length).to.equal(2); |
| 11 | expect(style[0][1]).to.not.equal(undefined); |
| 12 | expect(style[0][1].fragment).to.not.equal(undefined); |
| 13 | expect(style[0][1].fragment.marginRight).to.equal(width); |
| 14 | } |
| 15 | |
| 16 | describe('fragment styles', () => { |
| 17 | const cell = {height: 30}; |
no test coverage detected
searching dependent graphs…