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