Fix unit tests - 1.116

This commit is contained in:
Brandon Presley 2023-01-08 18:08:46 +13:00
parent 467df629b0
commit 04ef72e48b
5 changed files with 6 additions and 5 deletions

View File

@ -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()) {

View File

@ -1,6 +1,6 @@
{
"name": "massive",
"version": "1.115",
"version": "1.116",
"private": true,
"license": "GPL-3.0-only",
"scripts": {

View File

@ -33,6 +33,7 @@ test('renders correctly', async () => {
plan: {
workouts: 'Bench,Rows,Curls',
days: 'Monday,Tuesday,Thursday',
id: 1,
} as Plan,
}}
name="EditPlan"

View File

@ -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}

View File

@ -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()
})