mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: bump eslint config to latest (#308)
* chore: bump eslint config to latest * lint fix * lint pass * use roles directly
This commit is contained in:
committed by
GitHub
parent
ab34712133
commit
29ce4f2b48
+2
-2
@@ -68,7 +68,7 @@ function updateWithAct(
|
||||
renderer: ReactTestRenderer,
|
||||
wrap: (innerElement: React.Element<any>) => React.Element<any>
|
||||
) {
|
||||
return function(component: React.Element<any>) {
|
||||
return function (component: React.Element<any>) {
|
||||
act(() => {
|
||||
renderer.update(wrap(component));
|
||||
});
|
||||
@@ -79,6 +79,6 @@ function debug(instance: ReactTestInstance, renderer) {
|
||||
function debugImpl(message?: string) {
|
||||
return debugDeep(renderer.toJSON(), message);
|
||||
}
|
||||
debugImpl.shallow = message => debugShallow(instance, message);
|
||||
debugImpl.shallow = (message) => debugShallow(instance, message);
|
||||
return debugImpl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user