From 55d95dfefa97db50c3dce387d5894a156a3ea7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Ciccola?= Date: Wed, 31 Jul 2024 14:45:04 -0300 Subject: [PATCH] remove bad-docs tests since they don't make sense anymore --- test/fixtures/bad-docs.js | 150 -------------------------------------- 1 file changed, 150 deletions(-) diff --git a/test/fixtures/bad-docs.js b/test/fixtures/bad-docs.js index 2f3f529..e10afec 100644 --- a/test/fixtures/bad-docs.js +++ b/test/fixtures/bad-docs.js @@ -82,154 +82,4 @@ export const badDocs = [ color: '#ff00g1', }, }, - { - text: 'preset that references an invalid docTypr', - doc: { - docId: cachedValues.docId, - versionId: cachedValues.versionId, - schemaName: 'preset', - createdAt: cachedValues.createdAt, - updatedAt: cachedValues.updatedAt, - createdBy: cachedValues.createdBy, - links: [], - name: 'myPreset', - geometry: ['point'], - tags: {}, - addTags: {}, - removeTags: {}, - terms: [], - refs: [ - { - docId: cachedValues.refs.docId, - versionId: cachedValues.refs.docId, - type: 'observation', - }, - ], - deleted: false, - color: '#ff00g1', - }, - }, - { - text: 'preset ref type refers to invalid docType', - doc: { - docId: cachedValues.docId, - versionId: cachedValues.versionId, - schemaName: 'preset', - createdAt: cachedValues.createdAt, - updatedAt: cachedValues.updatedAt, - createdBy: cachedValues.createdBy, - links: [], - name: 'myPreset', - geometry: ['point', 'vertex', 'line'], - tags: { - someKeyForArrVal: ['arr', 'of', 'strings'], - }, - addTags: { - heyAddThisTag: 'pleease', - orMaybeThis: ['right?', '', 'that was empty'], - }, - removeTags: { - deleteInmeditaly: ['this list', 'of things'], - }, - refs: [ - { - docId: cachedValues.refs.docId, - versionId: cachedValues.refs.versionId, - type: 'observation', - }, - ], - color: '#ff00ff', - terms: ['imastring'], - deleted: false, - }, - }, - { - text: 'preset ref type cant refer to itself', - doc: { - docId: cachedValues.docId, - versionId: cachedValues.versionId, - schemaName: 'preset', - createdAt: cachedValues.createdAt, - updatedAt: cachedValues.updatedAt, - createdBy: cachedValues.createdBy, - links: [], - name: 'myPreset', - geometry: ['point', 'vertex', 'line'], - tags: { - someKeyForArrVal: ['arr', 'of', 'strings'], - }, - addTags: { - heyAddThisTag: 'pleease', - orMaybeThis: ['right?', '', 'that was empty'], - }, - removeTags: { - deleteInmeditaly: ['this list', 'of things'], - }, - refs: [ - { - docId: cachedValues.refs.docId, - versionId: cachedValues.refs.versionId, - type: 'preset', - }, - ], - color: '#ff00ff', - terms: ['imastring'], - deleted: false, - }, - }, - { - text: 'track ref type can only refer to observations', - doc: { - docId: cachedValues.docId, - versionId: cachedValues.versionId, - schemaName: 'track', - createdAt: cachedValues.createdAt, - updatedAt: cachedValues.updatedAt, - createdBy: cachedValues.createdBy, - links: [], - deleted: false, - locations: [ - { - timestamp: cachedValues.metadata.position.timestamp, - mocked: false, - coords: { latitude: 12, longitude: 34 }, - }, - { - timestamp: cachedValues.metadata.position.timestamp, - mocked: true, - coords: { - latitude: 12, - longitude: 34, - altitude: 123, - heading: 123, - speed: 0.123, - accuracy: 123, - }, - }, - ], - refs: [ - { - docId: randomBytes(32).toString('hex'), - versionId: randomBytes(32).toString('hex'), - type: 'observation', - }, - { - docId: randomBytes(32).toString('hex'), - versionId: randomBytes(32).toString('hex'), - type: 'field', - }, - ], - attachments: [ - { - name: 'myFile', - type: 'photo', - driveDiscoveryId: cachedValues.attachments.driveDiscoveryId, - hash: cachedValues.attachments.hash, - }, - ], - tags: { - someKeyForArrVal: ['arr', 'of', 'strings'], - }, - }, - }, ]