MCPcopy
hub / github.com/ampproject/amphtml / expectFe

Function expectFe

test/unit/test-fixed-layer.js:438–452  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

436
437 it('should discover all potentials', () => {
438 function expectFe(actual, expected) {
439 expect(actual.id).to.equal(expected.id, `${expected.id} wrong`);
440 expect(actual.element).to.equal(
441 expected.element,
442 `${expected.id}: wrong element`
443 );
444 expect(actual.position).to.equal(
445 expected.position,
446 `${expected.id}: wrong position`
447 );
448 expect(JSON.stringify(actual.selectors)).to.equal(
449 JSON.stringify(expected.selectors),
450 `${expected.id}: wrong selectors`
451 );
452 }
453
454 expect(fixedLayer.elements_).to.have.length(5);
455 expectFe(fixedLayer.elements_[0], {

Callers 1

Calls 2

expectFunction · 0.85
stringifyMethod · 0.80

Tested by

no test coverage detected