Fix unit tests - 1.124

This commit is contained in:
Brandon Presley 2023-02-14 16:39:47 +13:00
parent 3af3e1faf2
commit f4db61aeec
4 changed files with 5 additions and 3 deletions

View File

@ -41,8 +41,8 @@ android {
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 36149
versionName "1.123"
versionCode 36150
versionName "1.124"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
if (isNewArchitectureEnabled()) {

View File

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

View File

@ -12,6 +12,7 @@ jest.mock('../db.ts', () => ({
createQueryBuilder: () => ({
select: jest.fn().mockReturnThis(),
distinct: jest.fn().mockReturnThis(),
orderBy: jest.fn().mockReturnThis(),
getRawMany: jest.fn(() =>
Promise.resolve([
{name: 'Bench press'},

View File

@ -12,6 +12,7 @@ jest.mock('../db.ts', () => ({
addSelect: jest.fn().mockReturnThis(),
where: jest.fn().mockReturnThis(),
andWhere: jest.fn().mockReturnThis(),
orderBy: jest.fn().mockReturnThis(),
groupBy: jest.fn().mockReturnThis(),
distinct: jest.fn().mockReturnThis(),
getRawMany: jest.fn(() =>