diff options
| author | Matthew Bergman <[email protected]> | 2014-02-17 22:33:03 -0500 |
|---|---|---|
| committer | Matthew Bergman <[email protected]> | 2014-02-17 22:33:03 -0500 |
| commit | 31d526a4897d150ffd90ebddd2ec1291fdaedc72 (patch) | |
| tree | 0d89bf88523b377f25e5e8fb7160ce10bfbc057e /test/image.unit.js | |
| parent | 47527ec7391b15f915b25e983da80e98360ed04a (diff) | |
| parent | d470a1009058a02706c53379c5019ad43ed924e1 (diff) | |
| download | faker-31d526a4897d150ffd90ebddd2ec1291fdaedc72.tar.xz faker-31d526a4897d150ffd90ebddd2ec1291fdaedc72.zip | |
Merge pull request #70 from FotoVerite/master
Keep up to date.
Diffstat (limited to 'test/image.unit.js')
| -rw-r--r-- | test/image.unit.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/image.unit.js b/test/image.unit.js index 046291ad..3d25fe9a 100644 --- a/test/image.unit.js +++ b/test/image.unit.js @@ -7,32 +7,32 @@ if (typeof module !== 'undefined') { describe("image.js", function () { describe("imageUrl()", function () { it("returns a random image url from lorempixel", function () { - var imageUrl = Faker.Image.LoremPixel.imageUrl(); + var imageUrl = Faker.Image.imageUrl(); assert.equal(imageUrl, 'http://lorempixel.com/640/480'); }); it("returns a random image url from lorempixel with width and height", function () { - var imageUrl = Faker.Image.LoremPixel.imageUrl(100, 100); + var imageUrl = Faker.Image.imageUrl(100, 100); assert.equal(imageUrl, 'http://lorempixel.com/100/100'); }); it("returns a random image url in an abstract category", function () { - var imageUrl = Faker.Image.LoremPixel.imageUrl(100, 100, 'abstract'); + var imageUrl = Faker.Image.imageUrl(100, 100, 'abstract'); assert.equal(imageUrl, 'http://lorempixel.com/100/100/abstract'); }); it("returns a random image url in a category via proxy methods", function () { - var nightlife = Faker.Image.LoremPixel.nightlife(); + var nightlife = Faker.Image.nightlife(); assert.equal(nightlife, 'http://lorempixel.com/640/480/nightlife'); - var city = Faker.Image.LoremPixel.city(); + var city = Faker.Image.city(); assert.equal(city, 'http://lorempixel.com/640/480/city'); - var fashion = Faker.Image.LoremPixel.fashion(); + var fashion = Faker.Image.fashion(); assert.equal(fashion, 'http://lorempixel.com/640/480/fashion'); }); it("return a random avatar from UIFaces", function () { - assert.notEqual(-1, Faker.Image.UIFaces.avatar().indexOf('s3.amazonaws.com/uifaces/faces')); + assert.notEqual(-1, Faker.Image.avatar().indexOf('s3.amazonaws.com/uifaces/faces')); }) }); }); |
