RedHatInsights/insights-rbac-ui

View on GitHub
src/__mocks__/tabbable.js

Summary

Maintainability
A
0 mins
Test Coverage
const lib = jest.requireActual('tabbable');

const tabbable = {
  ...lib,
  tabbable: (node, options) => lib.tabbable(node, { ...options, displayCheck: 'none' }),
  focusable: (node, options) => lib.focusable(node, { ...options, displayCheck: 'none' }),
  isFocusable: (node, options) => lib.isFocusable(node, { ...options, displayCheck: 'none' }),
  isTabbable: (node, options) => lib.isTabbable(node, { ...options, displayCheck: 'none' }),
};

module.exports = tabbable;