Sha256: 5bc993e87aea6ca96e151ebcaa4806c5eb4e18c0008d604cad38195e2b799539

Contents?: true

Size: 433 Bytes

Versions: 10

Compression:

Stored size: 433 Bytes

Contents

module.exports = {

    toHaveRendered(wrapper, selector) {
        const matchCount = wrapper.find(selector).length;
        const result = { pass: 1 === matchCount };
        if (result.pass) {
            result.message = `${selector} was found`;
        } else {
            result.message = `Expected wrapper to contain '${selector}' only once, but it was found ${matchCount} times`;
        }
        return result;
    },

};

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hippo-fw-0.9.9 client/hippo/testing/matchers.js
hippo-fw-0.9.8 client/hippo/testing/matchers.js
hippo-fw-0.9.7 client/hippo/testing/matchers.js
hippo-fw-0.9.6 client/hippo/testing/matchers.js
hippo-fw-0.9.5 client/hippo/testing/matchers.js
hippo-fw-0.9.4 client/hippo/testing/matchers.js
hippo-fw-0.9.3 client/hippo/testing/matchers.js
hippo-fw-0.9.2 client/hippo/testing/matchers.js
hippo-fw-0.9.1 client/hippo/testing/matchers.js
lanes-0.8.3 client/lanes/jest/matchers.js