MCPcopy Create free account
hub / github.com/ampproject/amphtml / verifyArray

Function verifyArray

ads/google/test/test-utils.js:21–25  ·  view source on GitHub ↗
(actual, lower, upper)

Source from the content-addressed store, hash-verified

19 const multiSizeDataStr = '300x300,300x250,250x250,250x200,150x50';
20
21 function verifyArray(actual, lower, upper) {
22 expect(
23 multiSizes.filter((size, index) => index < upper && index >= lower)
24 ).to.deep.equal(actual);
25 }
26
27 it('should return all sizes', () => {
28 const actual = getMultiSizeDimensions(

Callers 1

test-utils.jsFile · 0.85

Calls 2

expectFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected