forked from jasonphillips/pdffiller-stream
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
const test = require("ava"); | ||
const createFdf = require("../dist/fdf").default; | ||
|
||
const data = { | ||
baseball: "Yes", | ||
basketball: "Off", | ||
date: "Jan 1, 2013", | ||
first_name: "1) John", | ||
football: "Off", | ||
hockey: "Yes", | ||
last_name: "Doe", | ||
nascar: "Off", | ||
}; | ||
|
||
test("should create a FDF template with a null value", (t) => { | ||
test("should create a FDF template and not error with a null value", (t) => { | ||
const fdfData = createFdf({ | ||
...data, | ||
nulval: undefined, | ||
baseball: "Yes", | ||
basketball: "Off", | ||
date: "Jan 1, 2013", | ||
first_name: "1) John", | ||
football: "Off", | ||
hockey: "Yes", | ||
last_name: "Doe", | ||
nascar: "Off", | ||
// eslint-disable-next-line unicorn/no-null | ||
nulval: null, | ||
udfval: undefined, | ||
}); | ||
t.assert(fdfData); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters