MCPcopy Index your code
hub / github.com/plotly/dash / validate

Function validate

components/dash-table/tests/js-unit/derivedFragmentStyles_test.ts:5–14  ·  view source on GitHub ↗
(style, width)

Source from the content-addressed store, hash-verified

3import derivedFragmentStyles from 'dash-table/derived/table/fragmentStyles';
4
5function 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
16describe('fragment styles', () => {
17 const cell = {height: 30};

Callers 1

Calls 2

expectFunction · 0.85
equalMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…