Skip to content

Commit

Permalink
Merge pull request #423 from schoero/fix/visual-tests
Browse files Browse the repository at this point in the history
test: fix visual tests
  • Loading branch information
schoero committed Nov 14, 2023
2 parents 1e4f5a8 + 85911a1 commit 5462c27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"configurations": [
{
"args": ["run", "${relativeFileDirname}/${fileBasenameNoExtension}"],
"args": [
"run",
"${relativeFileDirname}/${fileBasenameNoExtension}",
"--no-threads"
],
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"name": "debug current test file",
Expand All @@ -12,7 +16,11 @@
"type": "node"
},
{
"args": ["run", "${relativeFileDirname}/${fileBasenameNoExtension}"],
"args": [
"run",
"${relativeFileDirname}/${fileBasenameNoExtension}",
"--no-threads"
],
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"env": {
Expand All @@ -26,7 +34,11 @@
"type": "node"
},
{
"args": ["run", "${relativeFileDirname}/${fileBasenameNoExtension}"],
"args": [
"run",
"${relativeFileDirname}/${fileBasenameNoExtension}",
"--no-threads"
],
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"name": "debug current test file with node internals",
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class TestDocument extends PDFDocument {
constructor(testDocumentName: TestDocumentName, options?: PDFKit.PDFDocumentOptions) {
super({ ...options, bufferPages: true, compress: false });
this.testDocumentName = testDocumentName;
this.info.CreationDate = undefined;
this.info.CreationDate = new Date(0);
}

public async writeFile() {
Expand Down

0 comments on commit 5462c27

Please sign in to comment.