Skip to content

Commit

Permalink
Merge pull request #856 from abnersajr/fix-652
Browse files Browse the repository at this point in the history
Changes LoremPixel from HTTP to HTTPS
  • Loading branch information
Marak authored Jun 10, 2020
2 parents 7bdd36a + 2585ddc commit d467b90
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/image_providers/lorempixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
32 changes: 16 additions & 16 deletions test/image.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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');
});
});
});
Expand Down

0 comments on commit d467b90

Please sign in to comment.