Fix unit tests - 1.116
This commit is contained in:
parent
467df629b0
commit
04ef72e48b
|
@ -41,8 +41,8 @@ android {
|
|||
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 36141
|
||||
versionName "1.115"
|
||||
versionCode 36142
|
||||
versionName "1.116"
|
||||
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
||||
|
||||
if (isNewArchitectureEnabled()) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "massive",
|
||||
"version": "1.115",
|
||||
"version": "1.116",
|
||||
"private": true,
|
||||
"license": "GPL-3.0-only",
|
||||
"scripts": {
|
||||
|
|
|
@ -33,6 +33,7 @@ test('renders correctly', async () => {
|
|||
plan: {
|
||||
workouts: 'Bench,Rows,Curls',
|
||||
days: 'Monday,Tuesday,Thursday',
|
||||
id: 1,
|
||||
} as Plan,
|
||||
}}
|
||||
name="EditPlan"
|
||||
|
|
|
@ -25,7 +25,7 @@ test('renders correctly', async () => {
|
|||
<Stack.Navigator>
|
||||
<Stack.Screen
|
||||
initialParams={{
|
||||
value: {} as GymSet,
|
||||
value: {name: 'Bench press'} as GymSet,
|
||||
}}
|
||||
name="EditWorkout"
|
||||
component={EditWorkout}
|
||||
|
|
|
@ -63,5 +63,5 @@ test('adds', async () => {
|
|||
</MockProviders>,
|
||||
)
|
||||
fireEvent.press(await waitFor(() => getByTestId('add')))
|
||||
expect(await waitFor(() => getByText('Edit plan'))).toBeDefined()
|
||||
expect(await waitFor(() => getByText('Add plan'))).toBeDefined()
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user