diff options
| author | FotoVerite <[email protected]> | 2014-02-17 21:40:33 -0500 |
|---|---|---|
| committer | FotoVerite <[email protected]> | 2014-02-17 21:40:33 -0500 |
| commit | e80be6e92d27e129d9504b60562069bd83ef9dee (patch) | |
| tree | 57c718de69d392bf6c2231ea3ab234da9b377e1e /test/image.unit.js | |
| parent | 7710092ab44ce820dc73799193badee4e5ebce0c (diff) | |
| download | faker-e80be6e92d27e129d9504b60562069bd83ef9dee.tar.xz faker-e80be6e92d27e129d9504b60562069bd83ef9dee.zip | |
Fixes so build runs.
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')); }) }); }); |
