Skip to content

Commit

Permalink
Rename domainSuffix to tld
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 25, 2016
1 parent 4c6d216 commit e7ff562
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/locales/default/internet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import passwordGen from "vendor/password-generator";
module.exports = {
avatar: require("./avatar"),

domainSuffix: require("./domainSuffix"),
tld: require("./tld"),

userName(firstName, lastName) {
firstName = this.slugify(firstName ? firstName : this.populate("#{names.firstName}")).toLowerCase();
Expand All @@ -29,7 +29,7 @@ module.exports = {
"#{names.firstName}",
"#{names.firstName}#{names.lastName}",
"#{names.firstName}-#{names.lastName}"
]))).toLowerCase() + "." + this.random.arrayElement(module.exports.domainSuffix);
]))).toLowerCase() + "." + this.random.arrayElement(module.exports.tld);
},

url(isHttps, hasWWW) {
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/locales/default/internet.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe("Default internet", () => {
expect(fakerator.internet.avatar()).to.be.equal("https://s3.amazonaws.com/uifaces/faces/twitter/charliecwaite/128.jpg");
});

it("check internet.domainSuffix", () => {
expect(fakerator.populate("#{internet.domainSuffix}")).to.be.equal("eu");
expect(fakerator.internet.domainSuffix()).to.be.equal("com");
it("check internet.tld", () => {
expect(fakerator.populate("#{internet.tld}")).to.be.equal("eu");
expect(fakerator.internet.tld()).to.be.equal("com");
});

it("check internet.userName", () => {
Expand Down

0 comments on commit e7ff562

Please sign in to comment.