Ensure no unresolved types in the definition files (#6521)

* Ensure no unresolved types in the definition files

* Address feedback and general cleanup

* Move import from @constants/x to @constants where relevant

* Remove unneeded "import as"
This commit is contained in:
Daniel Espino García
2022-08-05 14:36:19 +02:00
committed by GitHub
parent aec0ccb105
commit f4e6917185
130 changed files with 395 additions and 351 deletions

View File

@@ -9,7 +9,6 @@ import {
} from '@database/operator/server_data_operator/transformers/general';
import type ServerDataOperator from '..';
import type {Model} from '@nozbe/watermelondb';
describe('*** DataOperator: Base Handlers tests ***', () => {
let operator: ServerDataOperator;
@@ -104,13 +103,11 @@ describe('*** DataOperator: Base Handlers tests ***', () => {
expect(appDatabase).toBeTruthy();
expect(appOperator).toBeTruthy();
const transformer = async (model: Model) => model;
await expect(
operator?.handleRecords({
fieldName: 'invalidField',
tableName: 'INVALID_TABLE_NAME',
transformer,
transformer: transformSystemRecord,
createOrUpdateRawValues: [{id: 'tos-1', value: '1'}],
prepareRecordsOnly: false,
}),