diff options
| author | Marak <[email protected]> | 2020-06-10 11:49:35 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-10 11:49:35 -0500 |
| commit | ad095d1544b2aba54aa41ad2a9ab2b2d1addfabb (patch) | |
| tree | 646a51f93db9930e09196e56a1bb5e82e33b937a /test | |
| parent | a4e7842235e83d1272b8398c9a99f8126c3a510a (diff) | |
| parent | 34bf995ab27c504db60b14b0e3af3fd99635760a (diff) | |
| download | faker-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.js | 12 |
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(); + }); + }); + }); |
