forked from Ivasoft/mattermost-mobile
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:
committed by
GitHub
parent
aec0ccb105
commit
f4e6917185
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user