aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2020-06-10 11:49:35 -0500
committerGitHub <[email protected]>2020-06-10 11:49:35 -0500
commitad095d1544b2aba54aa41ad2a9ab2b2d1addfabb (patch)
tree646a51f93db9930e09196e56a1bb5e82e33b937a /test
parenta4e7842235e83d1272b8398c9a99f8126c3a510a (diff)
parent34bf995ab27c504db60b14b0e3af3fd99635760a (diff)
downloadfaker-ad095d1544b2aba54aa41ad2a9ab2b2d1addfabb.tar.xz
faker-ad095d1544b2aba54aa41ad2a9ab2b2d1addfabb.zip
Merge pull request #823 from ashishra0/add-product-description
add random product description generator
Diffstat (limited to 'test')
-rw-r--r--test/commerce.unit.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/commerce.unit.js b/test/commerce.unit.js
index a0336c47..04d4277e 100644
--- a/test/commerce.unit.js
+++ b/test/commerce.unit.js
@@ -129,4 +129,16 @@ describe("commerce.js", function() {
});
+ describe("productDescription()", function() {
+ it("returns a random product description", function() {
+ sinon.spy(faker.commerce, 'productDescription');
+ var description = faker.commerce.productDescription();
+
+ assert.ok(typeof description === 'string');
+ assert.ok(faker.commerce.productDescription.calledOnce);
+
+ faker.commerce.productDescription.restore();
+ });
+ });
+
});