Just a whole lot of crap
This commit is contained in:
13
tests/__mocks__/ink-text-input.js
Normal file
13
tests/__mocks__/ink-text-input.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// Mock ink-text-input for testing
|
||||
const React = require("react");
|
||||
|
||||
const TextInput = ({ value, onChange, placeholder, ...props }) =>
|
||||
React.createElement("input", {
|
||||
...props,
|
||||
value,
|
||||
onChange: (e) => onChange && onChange(e.target.value),
|
||||
placeholder,
|
||||
});
|
||||
|
||||
module.exports = TextInput;
|
||||
module.exports.default = TextInput;
|
||||
Reference in New Issue
Block a user