How to use the @times-components/test-utils.hash function in @times-components/test-utils

To help you get started, we’ve selected a few @times-components/test-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github newsuk / times-components / packages / video / __tests__ / video-shared.native.js View on Github external
replacePropTransform((value, key) => {
        if (key === "uri") {
          return hash(value);
        }
        if (key === "source" && value.uri) {
          return hash(value.uri);
        }
        return value;
      })
    )
github newsuk / times-components / packages / image / __tests__ / modal-shared.native.js View on Github external
      replacePropTransform((value, key) => (key === "d" ? hash(value) : value))
    )
github newsuk / times-components / packages / icons / __tests__ / shared.web.js View on Github external
(value, key) =>
          longKeysSet.has(key) ? hash(JSON.stringify(value)) : value
      )
github newsuk / times-components / packages / image / __tests__ / shared.web.js View on Github external
      replacePropTransform((value, key) => (key === "d" ? hash(value) : value))
    )
github newsuk / times-components / packages / image / __tests__ / shared.native.js View on Github external
      replacePropTransform((value, key) => (key === "d" ? hash(value) : value))
    )
github newsuk / times-components / packages / icons / __tests__ / shared.native.js View on Github external
(value, key) =>
          longKeysSet.has(key) ? hash(JSON.stringify(value)) : value
      )
github newsuk / times-components / packages / watermark / __tests__ / shared.js View on Github external
      replacePropTransform((value, key) => (key === "d" ? hash(value) : value))
    )
github newsuk / times-components / packages / icons / __tests__ / shared-colour.web.js View on Github external
(value, key) =>
          longKeysSet.has(key) ? hash(JSON.stringify(value)) : value
      )
github newsuk / times-components / packages / icons / __tests__ / shared-dim.web.js View on Github external
(value, key) =>
          longKeysSet.has(key) ? hash(JSON.stringify(value)) : value
      )
github newsuk / times-components / packages / svgs / __tests__ / web / serializers.js View on Github external
(value, key) =>
        longValues.has(key) ? hash(JSON.stringify(value)) : value
    )

@times-components/test-utils

Test helpers for Times Components

BSD-3-Clause
Latest version published 5 months ago

Package Health Score

84 / 100
Full package analysis