Skip to content

Commit

Permalink
test(cli): update tests to match updated condition
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Jan 29, 2025
1 parent f5d00b1 commit 09a18f3
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ const documents: SanityDocument[] = [
_updatedAt: '2024-01-18T19:18:39.048Z',
_rev: 'rev6',
},
{
_id: 'some-sanity-internal-document.foo',
_type: 'sanity.some-sanity-internal-document',
_createdAt: '2024-01-18T19:18:39.048Z',
_updatedAt: '2024-01-18T19:18:39.048Z',
_rev: 'rev7',
},
]

describe('validateDocuments', () => {
Expand Down Expand Up @@ -243,7 +250,10 @@ describe('validateDocuments', () => {

expect(await receiver.event.exportFinished()).toEqual({
totalDocumentsToValidate:
documents.length - documents.filter((doc) => doc._type.startsWith('system.')).length,
documents.length -
documents.filter(
(doc) => doc._type.startsWith('system.') || doc._type.startsWith('sanity.'),
).length,
})
await receiver.event.loadedReferenceIntegrity()

Expand Down

0 comments on commit 09a18f3

Please sign in to comment.