UNPKG

rescript-dom-testing-library

Version:

ReScript bindings for @testing-library/dom

41 lines (32 loc) 1.21 kB
// Generated by ReScript, PLEASE EDIT WITH CARE 'use strict'; var Js_undefined = require("rescript/lib/js/js_undefined.js"); var Dom = require("@testing-library/dom"); function makeByTitleOptions(exact, normalizer, param) { return { exact: Js_undefined.fromOption(exact), normalizer: Js_undefined.fromOption(normalizer) }; } function getByTitle(options, matcher, element) { return Dom.getByTitle(element, matcher.VAL, options); } function findByTitle(options, matcher, element) { return Dom.findByTitle(element, matcher.VAL, options); } function getAllByTitle(options, matcher, element) { return Dom.getAllByTitle(element, matcher.VAL, options); } function queryAllByTitle(options, matcher, element) { return Dom.queryAllByTitle(element, matcher.VAL, options); } function findAllByTitle(options, matcher, element) { return Dom.findAllByTitle(element, matcher.VAL, options); } exports.makeByTitleOptions = makeByTitleOptions; exports.getByTitle = getByTitle; exports.findByTitle = findByTitle; exports.getAllByTitle = getAllByTitle; exports.queryAllByTitle = queryAllByTitle; exports.findAllByTitle = findAllByTitle; /* @testing-library/dom Not a pure module */