UNPKG

@testing-library/react-native

Version:

Simple and complete React Native testing utilities that encourage good testing practices.

22 lines (20 loc) 545 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.baseSyntheticEvent = baseSyntheticEvent; /** Builds base syntentic event stub, with prop values as inspected in RN runtime. */ function baseSyntheticEvent() { return { currentTarget: {}, target: {}, preventDefault: () => {}, isDefaultPrevented: () => false, stopPropagation: () => {}, isPropagationStopped: () => false, persist: () => {}, isPersistent: () => false, timeStamp: 0 }; } //# sourceMappingURL=base.js.map