(actual, expected)
| 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], { |
no test coverage detected