MCPcopy Create free account
hub / github.com/adobe/react-spectrum / collect

Function collect

packages/react-aria/test/dnd/dnd.test.js:1114–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112 });
1113
1114 let collect = async dir => {
1115 let entries = [];
1116 for await (let entry of dir.getEntries()) {
1117 entries.push(entry);
1118 }
1119 return entries;
1120 };
1121
1122 let entries = await collect(onDrop.mock.calls[0][0].items[0]);
1123 expect(entries).toEqual([

Callers 3

dnd.test.jsFile · 0.70
TableDnd.test.jsFile · 0.50

Calls 2

getEntriesMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected