Skip to content

Commit

Permalink
Fix tests after library update
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido committed Nov 26, 2024
1 parent e3f03a5 commit e45f901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/resources/report-schemas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ it("schema of document with address information report should be valid", async (
})
);

expect(document_report.properties.barcode.document_type).toEqual(
expect(document_report.properties.barcode[0].document_type).toEqual(
"driving_licence"
);
}, 30000);
2 changes: 1 addition & 1 deletion test/resources/workflow-runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,6 @@ it("downloads a timeline file", async () => {
]);

expect(file.status).toEqual(200);
expect(file.headers["content-type"]).toEqual("binary/octet-stream");
expect(file.headers["content-type"]).toEqual("application/pdf");
expect(file.data.buffer.slice(0, 5)).toEqual("%PDF-");
}, 60000);

0 comments on commit e45f901

Please sign in to comment.