MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / test

Function test

spec/gridstack-spec.ts:1776–1782  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1774 let items: GridStackWidget[];
1775 let grid: GridStack;
1776 const test = () => {
1777 items.forEach(item => {
1778 const n = grid.engine.nodes.find(n => n.id === item.id);
1779 if (item.y) expect(parseInt(n.el.getAttribute('gs-y'))).toBe(item.y!);
1780 else expect(n.el.getAttribute('gs-y')).toBe(null);
1781 });
1782 }
1783 beforeEach(() => {
1784 document.body.insertAdjacentHTML('afterbegin', gridstackEmptyHTML);
1785 items = [

Callers 2

gridstack-spec.tsFile · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected