Skip to content

Commit

Permalink
remove bad-docs tests since they don't make sense anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomás Ciccola committed Jul 31, 2024
1 parent e6c0ede commit 55d95df
Showing 1 changed file with 0 additions and 150 deletions.
150 changes: 0 additions & 150 deletions test/fixtures/bad-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
},
},
]

0 comments on commit 55d95df

Please sign in to comment.