All files / blong-int-adapter/mongodb/test/fixtures document.ts

100% Statements 41/41
100% Branches 0/0
100% Functions 0/0
100% Lines 41/41

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 421x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * Fixture data for MongoDB integration tests.
 * Used by testMongodbCrud to seed and verify CRUD operations on the `document` collection.
 */
 
export const documents = [
    {
        docType: 'blong-test',
        docTitle: 'Alpha Document',
        docContent: 'Content of the first blong integration test document',
        docVersion: 1,
    },
    {
        docType: 'blong-test',
        docTitle: 'Beta Document',
        docContent: 'Content of the second blong integration test document',
        docVersion: 1,
    },
    {
        docType: 'blong-test',
        docTitle: 'Gamma Document',
        docContent: 'Content of the third blong integration test document',
        docVersion: 1,
    },
] as const;
 
export const updatedFields = {
    docTitle: 'Alpha Document Updated',
    docContent: 'Updated content for integration test',
    docVersion: 2,
} as const;
 
export const mergeDocument = {
    docType: 'blong-test',
    docTitle: 'Merged Document',
    docContent: 'Upserted via merge in integration test',
    docVersion: 1,
} as const;
 
/** Tag used to isolate and clean up documents created during each test run. */
export const TEST_TAG = 'blong-crud-test';