diff --git a/test/fixtures/bad-docs.js b/test/fixtures/bad-docs.js index 88e6190..eac3cab 100644 --- a/test/fixtures/bad-docs.js +++ b/test/fixtures/bad-docs.js @@ -24,6 +24,23 @@ export const badDocs = [ deleted: false, }, }, + { + text: 'test schema name that could "trick" JavaScript', + /** @type Omit & { schemaName: 'hasOwnProperty' }} */ + doc: { + docId: cachedValues.docId, + versionId: cachedValues.versionId, + originalVersionId: cachedValues.versionId, + schemaName: 'hasOwnProperty', + createdAt: cachedValues.createdAt, + updatedAt: cachedValues.updatedAt, + links: [], + attachments: [], + tags: {}, + metadata: {}, + deleted: false, + }, + }, { text: 'missing expected originalVersionId', /** @type Omit */