mirror of
https://github.com/luxfi/safe-wallet.git
synced 2026-10-30 15:19:21 +00:00
* feat(mobile): add capture screen protection Disable screen capture on the import private key screen * tests(mobile): add tests for react-native-capture-protection * fix(test): test was crashing app since the test was not in __tests__ folder expo router was trying to load it as a screen.
18 lines
391 B
JavaScript
18 lines
391 B
JavaScript
/* eslint-disable */
|
|
// Manual mock for react-native-capture-protection
|
|
const mockPrevent = jest.fn()
|
|
const mockAllow = jest.fn()
|
|
|
|
const CaptureProtection = {
|
|
prevent: mockPrevent,
|
|
allow: mockAllow,
|
|
}
|
|
|
|
// Export the mock object
|
|
module.exports = {
|
|
CaptureProtection,
|
|
// Also export the mock functions so tests can access them
|
|
__mockPrevent: mockPrevent,
|
|
__mockAllow: mockAllow,
|
|
}
|