aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCraig Morris <[email protected]>2015-12-07 21:44:11 +0000
committerCraig Morris <[email protected]>2015-12-07 21:44:11 +0000
commit6bebc0b1992cbc1c0f6851d616463a8a0c6c64db (patch)
treec4a527889f3a9f9787fb6c1eb667eb50c75a298c /test
parent5a91b6432bd043eb897681dc4c2952fd20e657a2 (diff)
downloadfaker-6bebc0b1992cbc1c0f6851d616463a8a0c6c64db.tar.xz
faker-6bebc0b1992cbc1c0f6851d616463a8a0c6c64db.zip
Add parameters
Diffstat (limited to 'test')
-rw-r--r--test/image.unit.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/image.unit.js b/test/image.unit.js
index 04bf3475..1429dff9 100644
--- a/test/image.unit.js
+++ b/test/image.unit.js
@@ -21,6 +21,12 @@ describe("image.js", function () {
assert.equal(imageUrl, 'http://lorempixel.com/100/100/abstract');
});
+ it.only("returns a random image url from lorempixel with a randomizer", function () {
+ var imageUrl = faker.image.imageUrl(100, 100, undefined, true);
+
+ console.log(imageUrl);
+ assert.ok(imageUrl.match(/^http:\/\/lorempixel.com\/100\/100\?[\d]+$/));
+ });
});
describe("avatar()", function () {
it("return a random avatar from UIFaces", function () {