-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(llm): add missing integration test for the select import account…
…s modal
- Loading branch information
1 parent
4938d10
commit 0e1d53a
Showing
5 changed files
with
112 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
|
||
type Props = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export class MockedExpoCamera extends React.Component<Props> { | ||
static useCameraPermissions = () => [ | ||
{ canAskAgain: false, expires: "never", granted: true, status: "granted" }, | ||
() => { | ||
return new Promise(resolve => { | ||
resolve(jest.fn()); | ||
}); | ||
}, | ||
() => { | ||
return new Promise(resolve => { | ||
resolve(jest.fn()); | ||
}); | ||
}, | ||
]; | ||
render() { | ||
return <>{this.props.children}</>; | ||
} | ||
} | ||
|
||
export const MockedCameraType = { | ||
back: "back", | ||
front: "front", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters