aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam Walker <[email protected]>2021-05-19 23:49:20 -0400
committerAdam Walker <[email protected]>2021-05-19 23:49:20 -0400
commitcb1cb46b6f4f4485816f78674ebcf0a6596bc67e (patch)
tree91a600490b4ec9fcf2b2fca1a8c2f3ecbb4d06ea /test
parent20751822c88470e5ee35d64bbe73ad9d00a54132 (diff)
downloadfaker-cb1cb46b6f4f4485816f78674ebcf0a6596bc67e.tar.xz
faker-cb1cb46b6f4f4485816f78674ebcf0a6596bc67e.zip
Updated comments to include JSDoc fields
Diffstat (limited to 'test')
-rw-r--r--test/word.unit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/word.unit.js b/test/word.unit.js
index f96ff334..692177ef 100644
--- a/test/word.unit.js
+++ b/test/word.unit.js
@@ -26,10 +26,10 @@ describe.only("word.js", function () {
assert.ok(faker.definitions.word[method].includes(word));
assert.ok(word.length == wordLength);
});
- it("unable to find word of desired length returns stringified 'undefined'", function () {
+ it("unresolvable optional length returns random " + method, function () {
var wordLength = 1000;
var word = faker.word[method](wordLength);
- assert.ok(word === "undefined");
+ assert.ok(faker.definitions.word[method].includes(word));
});
});
});