diff options
| author | Marak <[email protected]> | 2020-06-10 00:37:26 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-10 00:37:26 -0500 |
| commit | d467b90de3fcf220b5e9492e21f39974372bb435 (patch) | |
| tree | 19648d7fa97a9020adc5a438a598fc4d990a4d02 | |
| parent | 7bdd36a5e3e22e53a2369caa90e4d682bf4b3b60 (diff) | |
| parent | 2585ddc1ae927a955a53b1c1cff80d2c5d7b7276 (diff) | |
| download | faker-d467b90de3fcf220b5e9492e21f39974372bb435.tar.xz faker-d467b90de3fcf220b5e9492e21f39974372bb435.zip | |
Merge pull request #856 from abnersajr/fix-652
Changes LoremPixel from HTTP to HTTPS
| -rw-r--r-- | lib/image_providers/lorempixel.js | 2 | ||||
| -rw-r--r-- | test/image.unit.js | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/lib/image_providers/lorempixel.js b/lib/image_providers/lorempixel.js index 44c0e007..9ebd5824 100644 --- a/lib/image_providers/lorempixel.js +++ b/lib/image_providers/lorempixel.js @@ -40,7 +40,7 @@ var Lorempixel = function (faker) { var width = width || 640; var height = height || 480; - var url ='http://lorempixel.com/' + width + '/' + height; + var url ='https://lorempixel.com/' + width + '/' + height; if (typeof category !== 'undefined') { url += '/' + category; } diff --git a/test/image.unit.js b/test/image.unit.js index 5f5e7b48..7c91bc89 100644 --- a/test/image.unit.js +++ b/test/image.unit.js @@ -10,17 +10,17 @@ describe("image.js", function () { it("returns a random image url from lorempixel", function () { var imageUrl = faker.image.lorempixel.imageUrl(); - assert.equal(imageUrl, 'http://lorempixel.com/640/480'); + assert.equal(imageUrl, 'https://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); - assert.equal(imageUrl, 'http://lorempixel.com/100/100'); + assert.equal(imageUrl, 'https://lorempixel.com/100/100'); }); it("returns a random image url for a specified category", function () { var imageUrl = faker.image.lorempixel.imageUrl(100, 100, 'abstract'); - assert.equal(imageUrl, 'http://lorempixel.com/100/100/abstract'); + assert.equal(imageUrl, 'https://lorempixel.com/100/100/abstract'); }); }); describe("avatar()", function () { @@ -31,79 +31,79 @@ describe("image.js", function () { describe("abstract()", function () { it("returns a random abstract image url", function () { var abstract = faker.image.lorempixel.abstract(); - assert.equal(abstract, 'http://lorempixel.com/640/480/abstract'); + assert.equal(abstract, 'https://lorempixel.com/640/480/abstract'); }); }); describe("animals()", function () { it("returns a random animals image url", function () { var animals = faker.image.lorempixel.animals(); - assert.equal(animals, 'http://lorempixel.com/640/480/animals'); + assert.equal(animals, 'https://lorempixel.com/640/480/animals'); }); }); describe("business()", function () { it("returns a random business image url", function () { var business = faker.image.lorempixel.business(); - assert.equal(business, 'http://lorempixel.com/640/480/business'); + assert.equal(business, 'https://lorempixel.com/640/480/business'); }); }); describe("cats()", function () { it("returns a random cats image url", function () { var cats = faker.image.lorempixel.cats(); - assert.equal(cats, 'http://lorempixel.com/640/480/cats'); + assert.equal(cats, 'https://lorempixel.com/640/480/cats'); }); }); describe("city()", function () { it("returns a random city image url", function () { var city = faker.image.lorempixel.city(); - assert.equal(city, 'http://lorempixel.com/640/480/city'); + assert.equal(city, 'https://lorempixel.com/640/480/city'); }); }); describe("food()", function () { it("returns a random food image url", function () { var food = faker.image.lorempixel.food(); - assert.equal(food, 'http://lorempixel.com/640/480/food'); + assert.equal(food, 'https://lorempixel.com/640/480/food'); }); }); describe("nightlife()", function () { it("returns a random nightlife image url", function () { var nightlife = faker.image.lorempixel.nightlife(); - assert.equal(nightlife, 'http://lorempixel.com/640/480/nightlife'); + assert.equal(nightlife, 'https://lorempixel.com/640/480/nightlife'); }); }); describe("fashion()", function () { it("returns a random fashion image url", function () { var fashion = faker.image.lorempixel.fashion(); - assert.equal(fashion, 'http://lorempixel.com/640/480/fashion'); + assert.equal(fashion, 'https://lorempixel.com/640/480/fashion'); }); }); describe("people()", function () { it("returns a random people image url", function () { var people = faker.image.lorempixel.people(); - assert.equal(people, 'http://lorempixel.com/640/480/people'); + assert.equal(people, 'https://lorempixel.com/640/480/people'); }); }); describe("nature()", function () { it("returns a random nature image url", function () { var nature = faker.image.lorempixel.nature(); - assert.equal(nature, 'http://lorempixel.com/640/480/nature'); + assert.equal(nature, 'https://lorempixel.com/640/480/nature'); }); }); describe("sports()", function () { it("returns a random sports image url", function () { var sports = faker.image.lorempixel.sports(); - assert.equal(sports, 'http://lorempixel.com/640/480/sports'); + assert.equal(sports, 'https://lorempixel.com/640/480/sports'); }); }); describe("technics()", function () { it("returns a random technics image url", function () { var technics = faker.image.lorempixel.technics(); - assert.equal(technics, 'http://lorempixel.com/640/480/technics'); + assert.equal(technics, 'https://lorempixel.com/640/480/technics'); }); }); describe("transport()", function () { it("returns a random transport image url", function () { var transport = faker.image.lorempixel.transport(); - assert.equal(transport, 'http://lorempixel.com/640/480/transport'); + assert.equal(transport, 'https://lorempixel.com/640/480/transport'); }); }); }); |
