Skip to content

Commit

Permalink
fix: SITES-25634 [Importer] Expose hasCustomImportJs and hasCustomHea…
Browse files Browse the repository at this point in the history
…ders as two new fields on a import job.
  • Loading branch information
Ben Helleman committed Sep 24, 2024
1 parent 0464d12 commit 70f0359
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,14 @@ describe('Import Job Tests', () => {

// expect that 2 results were in the db, and that the results were not modified
expect(result).to.be.an('array').and.to.have.lengthOf(2);

// verify that the mocked properties are present in the result
function hasPropertiesOf(mockJob, importJob) {
return Object.keys(mockJob).every((key) => mockJob[key] === importJob.state[key]);
}

expect(hasPropertiesOf(mockImportJobs[0], result[0])).to.be.true;
expect(hasPropertiesOf(mockImportJobs[1], result[1])).to.be.true;
},
);
});
Expand Down

0 comments on commit 70f0359

Please sign in to comment.