Skip to content

Commit

Permalink
lint fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbanister committed Nov 6, 2023
1 parent ca07400 commit ebe5ab7
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
newResourceInfo,
DocumentUuid,
TraceId,
MetaEdResourceName,
} from '@edfi/meadowlark-core';
import { ClientSession, Collection, MongoClient, WithId } from 'mongodb';
import { MeadowlarkDocument, meadowlarkDocumentFrom } from '../../../src/model/MeadowlarkDocument';
Expand Down Expand Up @@ -60,12 +61,12 @@ const edfiSchoolDoc = {

const schoolResourceInfo: ResourceInfo = {
...newResourceInfo(),
resourceName: 'School',
resourceName: 'School' as MetaEdResourceName,
};

const schoolDocumentInfo: DocumentInfo = {
...newDocumentInfo(),
documentIdentity: { schoolId: '123' },
documentIdentity: [{ schoolId: '123' }],
};

const schoolMeadowlarkId = meadowlarkIdForDocumentIdentity(schoolResourceInfo, schoolDocumentInfo.documentIdentity);
Expand Down Expand Up @@ -101,14 +102,18 @@ const schoolDocument: MeadowlarkDocument = meadowlarkDocumentFrom({

const academicWeekResourceInfo: ResourceInfo = {
...newResourceInfo(),
resourceName: 'AcademicWeek',
resourceName: 'AcademicWeek' as MetaEdResourceName,
};
const academicWeekDocumentInfo: DocumentInfo = {
...newDocumentInfo(),
documentIdentity: {
schoolId: '123',
weekIdentifier: '123456',
},
documentIdentity: [
{
schoolId: '123',
},
{
weekIdentifier: '123456',
},
],

documentReferences: [referenceToSchool],
};
Expand Down

0 comments on commit ebe5ab7

Please sign in to comment.