MCPcopy Index your code
hub / github.com/buildbot/buildbot / expectArrayContents

Function expectArrayContents

www/data-module/src/data/DataCollection.test.ts:49–51  ·  view source on GitHub ↗
(c: DataCollection<TestDataClass>, expected: [number, number][])

Source from the content-addressed store, hash-verified

47 }
48
49 const expectArrayContents = (c: DataCollection<TestDataClass>, expected: [number, number][]) => {
50 expect(c.array.map(x => [x.testid, x.testdata])).toEqual(expected);
51 }
52
53 const expectByIdContents = (c: DataCollection<TestDataClass>, expected: [number, number][]) => {
54 expect([...c.byId.values()].map(x => [x.testid, x.testdata])).toEqual(expected);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected