diff --git a/lib/locales/nb-NO/address/city.js b/lib/locales/nb-NO/address/city.js new file mode 100644 index 00000000..862cf01d --- /dev/null +++ b/lib/locales/nb-NO/address/city.js @@ -0,0 +1,81 @@ +module.exports = [ + "Bánovce nad Bebravou", + "Banská Bystrica", + "Banská Štiavnica", + "Bardejov", + "Bratislava I", + "Bratislava II", + "Bratislava III", + "Bratislava IV", + "Bratislava V", + "Brezno", + "Bytča", + "Čadca", + "Detva", + "Dolný Kubín", + "Dunajská Streda", + "Galanta", + "Gelnica", + "Hlohovec", + "Humenné", + "Ilava", + "Kežmarok", + "Komárno", + "Košice I", + "Košice II", + "Košice III", + "Košice IV", + "Košice-okolie", + "Krupina", + "Kysucké Nové Mesto", + "Levice", + "Levoča", + "Liptovský Mikuláš", + "Lučenec", + "Malacky", + "Martin", + "Medzilaborce", + "Michalovce", + "Myjava", + "Námestovo", + "Nitra", + "Nové Mesto n.Váhom", + "Nové Zámky", + "Partizánske", + "Pezinok", + "Piešťany", + "Poltár", + "Poprad", + "Považská Bystrica", + "Prešov", + "Prievidza", + "Púchov", + "Revúca", + "Rimavská Sobota", + "Rožňava", + "Ružomberok", + "Sabinov", + "Šaľa", + "Senec", + "Senica", + "Skalica", + "Snina", + "Sobrance", + "Spišská Nová Ves", + "Stará Ľubovňa", + "Stropkov", + "Svidník", + "Topoľčany", + "Trebišov", + "Trenčín", + "Trnava", + "Turčianske Teplice", + "Tvrdošín", + "Veľký Krtíš", + "Vranov nad Topľou", + "Žarnovica", + "Žiar nad Hronom", + "Žilina", + "Zlaté Moravce", + "Zvolen" +]; diff --git a/lib/locales/nb-NO/address/countryWithCodes.js b/lib/locales/nb-NO/address/countryWithCodes.js new file mode 100644 index 00000000..4dbcb3ef --- /dev/null +++ b/lib/locales/nb-NO/address/countryWithCodes.js @@ -0,0 +1,257 @@ +/* Datasource: https://github.com/umpirsky/country-list */ + +module.exports = { + "AF":"Afghanistan", + "AL":"Albania", + "DZ":"Algerie", + "AS":"Amerikansk Samoa", + "AD":"Andorra", + "AO":"Angola", + "AI":"Anguilla", + "AQ":"Antarktis", + "AG":"Antigua og Barbuda", + "AR":"Argentina", + "AM":"Armenia", + "AW":"Aruba", + "AC":"Ascension", + "AZ":"Aserbajdsjan", + "AU":"Australia", + "BS":"Bahamas", + "BH":"Bahrain", + "BD":"Bangladesh", + "BB":"Barbados", + "BE":"Belgia", + "BZ":"Belize", + "BJ":"Benin", + "BM":"Bermuda", + "BT":"Bhutan", + "BO":"Bolivia", + "BA":"Bosnia-Hercegovina", + "BW":"Botswana", + "BR":"Brasil", + "IO":"Britiske territorier i Indiahavet", + "BN":"Brunei", + "BG":"Bulgaria", + "BF":"Burkina Faso", + "BI":"Burundi", + "CA":"Canada", + "KY":"Cayman\u00f8yene", + "EA":"Ceuta og Melilla", + "CL":"Chile", + "CX":"Christmas\u00f8ya", + "CO":"Colombia", + "CK":"Cook\u00f8yene", + "CR":"Costa Rica", + "CU":"Cuba", + "CW":"Cura\u00e7ao", + "DK":"Danmark", + "VI":"De amerikanske jomfru\u00f8yene", + "VG":"De britiske jomfru\u00f8yene", + "AE":"De forente arabiske emirater", + "TF":"De franske s\u00f8rterritorier", + "DO":"Den dominikanske republikk", + "CF":"Den sentralafrikanske republikk", + "PS":"Det palestinske omr\u00e5det", + "DG":"Diego Garcia", + "DJ":"Djibouti", + "DM":"Dominica", + "EC":"Ecuador", + "EG":"Egypt", + "GQ":"Ekvatorial-Guinea", + "SV":"El Salvador", + "CI":"Elfenbenskysten", + "ER":"Eritrea", + "EE":"Estland", + "ET":"Etiopia", + "FK":"Falklands\u00f8yene", + "FJ":"Fiji", + "PH":"Filippinene", + "FI":"Finland", + "FR":"Frankrike", + "GF":"Fransk Guyana", + "PF":"Fransk Polynesia", + "FO":"F\u00e6r\u00f8yene", + "GA":"Gabon", + "GM":"Gambia", + "GE":"Georgia", + "GH":"Ghana", + "GI":"Gibraltar", + "GD":"Grenada", + "GL":"Gr\u00f8nland", + "GP":"Guadeloupe", + "GU":"Guam", + "GT":"Guatemala", + "GG":"Guernsey", + "GN":"Guinea", + "GW":"Guinea-Bissau", + "GY":"Guyana", + "HT":"Haiti", + "GR":"Hellas", + "HN":"Honduras", + "HK":"Hongkong S.A.R. Kina", + "BY":"Hviterussland", + "IN":"India", + "ID":"Indonesia", + "IQ":"Irak", + "IR":"Iran", + "IE":"Irland", + "IS":"Island", + "IL":"Israel", + "IT":"Italia", + "JM":"Jamaica", + "JP":"Japan", + "YE":"Jemen", + "JE":"Jersey", + "JO":"Jordan", + "KH":"Kambodsja", + "CM":"Kamerun", + "IC":"Kanari\u00f8yene", + "CV":"Kapp Verde", + "BQ":"Karibisk Nederland", + "KZ":"Kasakhstan", + "KE":"Kenya", + "CN":"Kina", + "KG":"Kirgisistan", + "KI":"Kiribati", + "CC":"Kokos\u00f8yene", + "KM":"Komorene", + "CG":"Kongo-Brazzaville", + "CD":"Kongo-Kinshasa", + "XK":"Kosovo", + "HR":"Kroatia", + "KW":"Kuwait", + "CY":"Kypros", + "LA":"Laos", + "LV":"Latvia", + "LS":"Lesotho", + "LB":"Libanon", + "LR":"Liberia", + "LY":"Libya", + "LI":"Liechtenstein", + "LT":"Litauen", + "LU":"Luxemburg", + "MO":"Macao S.A.R. Kina", + "MG":"Madagaskar", + "MK":"Makedonia", + "MW":"Malawi", + "MY":"Malaysia", + "MV":"Maldivene", + "ML":"Mali", + "MT":"Malta", + "IM":"Man", + "MA":"Marokko", + "MH":"Marshall\u00f8yene", + "MQ":"Martinique", + "MR":"Mauritania", + "MU":"Mauritius", + "YT":"Mayotte", + "MX":"Mexico", + "FM":"Mikronesiaf\u00f8derasjonen", + "MD":"Moldova", + "MC":"Monaco", + "MN":"Mongolia", + "ME":"Montenegro", + "MS":"Montserrat", + "MZ":"Mosambik", + "MM":"Myanmar (Burma)", + "NA":"Namibia", + "NR":"Nauru", + "NL":"Nederland", + "NP":"Nepal", + "NZ":"New Zealand", + "NI":"Nicaragua", + "NE":"Niger", + "NG":"Nigeria", + "NU":"Niue", + "KP":"Nord-Korea", + "MP":"Nord-Marianene", + "NF":"Norfolk\u00f8ya", + "NO":"Norge", + "NC":"Ny-Caledonia", + "OM":"Oman", + "PK":"Pakistan", + "PW":"Palau", + "PA":"Panama", + "PG":"Papua Ny-Guinea", + "PY":"Paraguay", + "PE":"Peru", + "PN":"Pitcairn", + "PL":"Polen", + "PT":"Portugal", + "PR":"Puerto Rico", + "QA":"Qatar", + "RE":"R\u00e9union", + "RO":"Romania", + "RU":"Russland", + "RW":"Rwanda", + "BL":"Saint-Barth\u00e9lemy", + "MF":"Saint-Martin", + "SB":"Salomon\u00f8yene", + "WS":"Samoa", + "SM":"San Marino", + "ST":"S\u00e3o Tom\u00e9 og Pr\u00edncipe", + "SA":"Saudi-Arabia", + "SN":"Senegal", + "RS":"Serbia", + "SC":"Seychellene", + "SL":"Sierra Leone", + "SG":"Singapore", + "SX":"Sint Maarten", + "SK":"Slovakia", + "SI":"Slovenia", + "SO":"Somalia", + "ES":"Spania", + "LK":"Sri Lanka", + "SH":"St. Helena", + "KN":"St. Kitts og Nevis", + "LC":"St. Lucia", + "PM":"St. Pierre og Miquelon", + "VC":"St. Vincent og Grenadinene", + "GB":"Storbritannia", + "SD":"Sudan", + "SR":"Surinam", + "SJ":"Svalbard og Jan Mayen", + "CH":"Sveits", + "SE":"Sverige", + "SZ":"Swaziland", + "SY":"Syria", + "ZA":"S\u00f8r-Afrika", + "GS":"S\u00f8r-Georgia og S\u00f8r-Sandwich\u00f8yene", + "KR":"S\u00f8r-Korea", + "SS":"S\u00f8r-Sudan", + "TJ":"Tadsjikistan", + "TW":"Taiwan", + "TZ":"Tanzania", + "TH":"Thailand", + "TG":"Togo", + "TK":"Tokelau", + "TO":"Tonga", + "TT":"Trinidad og Tobago", + "TA":"Tristan da Cunha", + "TD":"Tsjad", + "CZ":"Tsjekkia", + "TN":"Tunisia", + "TM":"Turkmenistan", + "TC":"Turks- og Caicos\u00f8yene", + "TV":"Tuvalu", + "TR":"Tyrkia", + "DE":"Tyskland", + "UG":"Uganda", + "UA":"Ukraina", + "HU":"Ungarn", + "UY":"Uruguay", + "US":"USA", + "UM":"USAs ytre \u00f8yer", + "UZ":"Usbekistan", + "VU":"Vanuatu", + "VA":"Vatikanstaten", + "VE":"Venezuela", + "EH":"Vest-Sahara", + "VN":"Vietnam", + "WF":"Wallis og Futuna", + "ZM":"Zambia", + "ZW":"Zimbabwe", + "TL":"\u00d8st-Timor", + "AT":"\u00d8sterrike", + "AX":"\u00c5land" +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/address/index.js b/lib/locales/nb-NO/address/index.js new file mode 100644 index 00000000..e7dc8a90 --- /dev/null +++ b/lib/locales/nb-NO/address/index.js @@ -0,0 +1,114 @@ +import countries from "./countryWithCodes"; + +module.exports = { + countryAndCode() { + let country = this.random.objectElement(countries); + return { + code: Object.keys(country)[0], + name: country[Object.keys(country)[0]] + }; + }, + + state: [ + ], + + stateAbbr: [ + ], + + city: [ + "#{address.cityName}#{address.citySuffix}" + ], + + cityName: [ + "Fet", + "Gjes", + "Høy", + "Inn", + "Fager", + "Lille", + "Lo", + "Mal", + "Nord", + "Nær", + "Sand", + "Sme", + "Stav", + "Stor", + "Tand", + "Ut", + "Vest" + ], + + citySuffix: [ + "berg", + "borg", + "by", + "bø", + "dal", + "eid", + "fjell", + "fjord", + "foss", + "grunn", + "hamn", + "havn", + "helle", + "mark", + "nes", + "odden", + "sand", + "sjøen", + "stad", + "strand", + "strøm", + "sund", + "vik", + "vær", + "våg", + "ø", + "øy", + "ås" + ], + + street: [ + "#{address.streetName}#{address.streetSuffix}", + "#{address.streetPrefix} #{address.streetName}#{address.streetSuffix}", + "#{names.firstName}#{address.commonStreetSuffix}", + "#{names.lastName}#{address.commonStreetSuffix}" + ], + + streetName: require("./streetName"), + + streetPrefix: [ + "Øvre", + "Nedre", + "Søndre", + "Gamle", + "Østre", + "Vestre" + ], + + streetSuffix: require("./streetSuffix"), + + commonStreetSuffix: [ + "sgate", + "svei", + "s Gate", + "s Vei", + "gata", + "veien" + ], + + buildingNumber: [ + "#", + "##" + ], + + postCode: [ + "####", + "####", + "####", + "0###" + ] + +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/address/streetName.js b/lib/locales/nb-NO/address/streetName.js new file mode 100644 index 00000000..829448b3 --- /dev/null +++ b/lib/locales/nb-NO/address/streetName.js @@ -0,0 +1,35 @@ +module.exports = [ + "Eike", + "Bjørke", + "Gran", + "Vass", + "Furu", + "Litj", + "Lille", + "Høy", + "Fosse", + "Elve", + "Ku", + "Konvall", + "Soldugg", + "Hestemyr", + "Granitt", + "Hegge", + "Rogne", + "Fiol", + "Sol", + "Ting", + "Malm", + "Klokker", + "Preste", + "Dam", + "Geiterygg", + "Bekke", + "Berg", + "Kirke", + "Kors", + "Bru", + "Blåveis", + "Torg", + "Sjø" +]; diff --git a/lib/locales/nb-NO/address/streetSuffix.js b/lib/locales/nb-NO/address/streetSuffix.js new file mode 100644 index 00000000..4aceb6d2 --- /dev/null +++ b/lib/locales/nb-NO/address/streetSuffix.js @@ -0,0 +1,48 @@ +module.exports = [ + "alléen", + "bakken", + "berget", + "bråten", + "eggen", + "engen", + "ekra", + "faret", + "flata", + "gata", + "gjerdet", + "grenda", + "gropa", + "hagen", + "haugen", + "havna", + "holtet", + "høgda", + "jordet", + "kollen", + "kroken", + "lia", + "lunden", + "lyngen", + "løkka", + "marka", + "moen", + "myra", + "plassen", + "ringen", + "roa", + "røa", + "skogen", + "skrenten", + "spranget", + "stien", + "stranda", + "stubben", + "stykket", + "svingen", + "tjernet", + "toppen", + "tunet", + "vollen", + "vika", + "åsen" +]; diff --git a/lib/locales/nb-NO/build.js b/lib/locales/nb-NO/build.js new file mode 100644 index 00000000..b3732ec3 --- /dev/null +++ b/lib/locales/nb-NO/build.js @@ -0,0 +1,24 @@ +import isNil from "lodash/isNil"; +import isArray from "lodash/isArray"; +import isFunction from "lodash/isFunction"; +import isObject from "lodash/isObject"; +import mergeWith from "lodash/mergeWith"; + +import Fakerator from "lib/fakerator"; + +module.exports = function() { + let locale = require("lib/locales/nb-NO"); + let fbLocale = require("lib/locales/default"); + + // Merge locale and fallback + locale = mergeWith(locale, fbLocale, (objValue) => { + // DON'T MERGE ARRAYS + if (isArray(objValue) || isFunction(objValue)) + return objValue; + + if (!isNil(objValue) && !isObject(objValue)) + return objValue; + }); + + return new Fakerator(locale); +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/company/index.js b/lib/locales/nb-NO/company/index.js new file mode 100644 index 00000000..dc106731 --- /dev/null +++ b/lib/locales/nb-NO/company/index.js @@ -0,0 +1,16 @@ +module.exports = { + name: [ + "#{names.lastName} #{company.suffix}", + "#{names.lastName}-#{company.suffix}", + "#{names.lastName}, #{names.lastName} og #{names.lastName}" + ], + + suffix: [ + "Gruppen", + "AS", + "ASA", + "BA", + "RFH", + "og Sønner" + ] +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/index.js b/lib/locales/nb-NO/index.js new file mode 100644 index 00000000..b2a3f69e --- /dev/null +++ b/lib/locales/nb-NO/index.js @@ -0,0 +1,15 @@ +module.exports = { + _meta: { + id: "nb-NO", + fallback: null, + language: "Norwegian", + country: "Norway", + countryCode: "NO" + }, + + names: require("./names"), + phone: require("./phone"), + address: require("./address"), + company: require("./company"), + internet: require("./internet") +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/internet/index.js b/lib/locales/nb-NO/internet/index.js new file mode 100644 index 00000000..31fd0f4a --- /dev/null +++ b/lib/locales/nb-NO/internet/index.js @@ -0,0 +1,9 @@ +module.exports = { + tld: [ + "no", + "com", + "net", + "org" + ] + +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/names/firstNameF.js b/lib/locales/nb-NO/names/firstNameF.js new file mode 100644 index 00000000..a9b04d86 --- /dev/null +++ b/lib/locales/nb-NO/names/firstNameF.js @@ -0,0 +1,52 @@ +module.exports = [ + "Emma", + "Sara", + "Thea", + "Ida", + "Julie", + "Nora", + "Emilie", + "Ingrid", + "Hanna", + "Maria", + "Sofie", + "Anna", + "Malin", + "Amalie", + "Vilde", + "Frida", + "Andrea", + "Tuva", + "Victoria", + "Mia", + "Karoline", + "Mathilde", + "Martine", + "Linnea", + "Marte", + "Hedda", + "Marie", + "Helene", + "Silje", + "Leah", + "Maja", + "Elise", + "Oda", + "Kristine", + "Aurora", + "Kaja", + "Camilla", + "Mari", + "Maren", + "Mina", + "Selma", + "Jenny", + "Celine", + "Eline", + "Sunniva", + "Natalie", + "Tiril", + "Synne", + "Sandra", + "Madeleine" +]; diff --git a/lib/locales/nb-NO/names/firstNameM.js b/lib/locales/nb-NO/names/firstNameM.js new file mode 100644 index 00000000..053df84e --- /dev/null +++ b/lib/locales/nb-NO/names/firstNameM.js @@ -0,0 +1,52 @@ +module.exports = [ + "Markus", + "Mathias", + "Kristian", + "Jonas", + "Andreas", + "Alexander", + "Martin", + "Sander", + "Daniel", + "Magnus", + "Henrik", + "Tobias", + "Kristoffer", + "Emil", + "Adrian", + "Sebastian", + "Marius", + "Elias", + "Fredrik", + "Thomas", + "Sondre", + "Benjamin", + "Jakob", + "Oliver", + "Lucas", + "Oskar", + "Nikolai", + "Filip", + "Mats", + "William", + "Erik", + "Simen", + "Ole", + "Eirik", + "Isak", + "Kasper", + "Noah", + "Lars", + "Joakim", + "Johannes", + "Håkon", + "Sindre", + "Jørgen", + "Herman", + "Anders", + "Jonathan", + "Even", + "Theodor", + "Mikkel", + "Aksel" +]; diff --git a/lib/locales/nb-NO/names/index.js b/lib/locales/nb-NO/names/index.js new file mode 100644 index 00000000..2a69dcf3 --- /dev/null +++ b/lib/locales/nb-NO/names/index.js @@ -0,0 +1,39 @@ +module.exports = { + // Male first name + firstNameM: require("./firstNameM"), + + // Femail first name + firstNameF: require("./firstNameF"), + + // Male last name + lastNameM: require("./lastName"), + + // Female last name + lastNameF: require("./lastName"), + + prefix: [ + "Dr.", + "Prof." + ], + + suffix: [], + + nameM: [ + "#{names.prefix} #{names.firstNameM} #{names.lastNameM}", + "#{names.firstNameM} #{names.firstNameM} #{names.lastNameM}", + "#{names.firstNameM} #{names.lastNameM} #{names.lastNameM}", + "#{names.firstNameM} #{names.lastNameM}", + "#{names.firstNameM} #{names.lastNameM}", + "#{names.firstNameM} #{names.lastNameM}" + ], + + nameF: [ + "#{names.prefix} #{names.firstNameM} #{names.lastNameF}", + "#{names.firstNameF} #{names.firstNameF} #{names.lastNameF}", + "#{names.firstNameF} #{names.lastNameF} #{names.lastNameF}", + "#{names.firstNameF} #{names.lastNameF}", + "#{names.firstNameF} #{names.lastNameF}", + "#{names.firstNameF} #{names.lastNameF}" + ] + +}; \ No newline at end of file diff --git a/lib/locales/nb-NO/names/lastName.js b/lib/locales/nb-NO/names/lastName.js new file mode 100644 index 00000000..20efd85e --- /dev/null +++ b/lib/locales/nb-NO/names/lastName.js @@ -0,0 +1,102 @@ +module.exports = [ + "Johansen", + "Hansen", + "Andersen", + "Kristiansen", + "Larsen", + "Olsen", + "Solberg", + "Andresen", + "Pedersen", + "Nilsen", + "Berg", + "Halvorsen", + "Karlsen", + "Svendsen", + "Jensen", + "Haugen", + "Martinsen", + "Eriksen", + "Sørensen", + "Johnsen", + "Myhrer", + "Johannessen", + "Nielsen", + "Hagen", + "Pettersen", + "Bakke", + "Skuterud", + "Løken", + "Gundersen", + "Strand", + "Jørgensen", + "Kvarme", + "Røed", + "Sæther", + "Stensrud", + "Moe", + "Kristoffersen", + "Jakobsen", + "Holm", + "Aas", + "Lie", + "Moen", + "Andreassen", + "Vedvik", + "Nguyen", + "Jacobsen", + "Torgersen", + "Ruud", + "Krogh", + "Christiansen", + "Bjerke", + "Aalerud", + "Borge", + "Sørlie", + "Berge", + "Østli", + "Ødegård", + "Torp", + "Henriksen", + "Haukelidsæter", + "Fjeld", + "Danielsen", + "Aasen", + "Fredriksen", + "Dahl", + "Berntsen", + "Arnesen", + "Wold", + "Thoresen", + "Solheim", + "Skoglund", + "Bakken", + "Amundsen", + "Solli", + "Smogeli", + "Kristensen", + "Glosli", + "Fossum", + "Evensen", + "Eide", + "Carlsen", + "Østby", + "Vegge", + "Tangen", + "Smedsrud", + "Olstad", + "Lunde", + "Kleven", + "Huseby", + "Bjørnstad", + "Ryan", + "Rasmussen", + "Nygård", + "Nordskaug", + "Nordby", + "Mathisen", + "Hopland", + "Gran", + "Finstad", + "Edvardsen" +]; diff --git a/lib/locales/nb-NO/phone/index.js b/lib/locales/nb-NO/phone/index.js new file mode 100644 index 00000000..65ba82f7 --- /dev/null +++ b/lib/locales/nb-NO/phone/index.js @@ -0,0 +1,8 @@ +module.exports = { + number: [ + "########", + "## ## ## ##", + "### ## ###", + "+47 ## ## ## ##" + ] +}; \ No newline at end of file diff --git a/test/specs/locales/nb-NO/index.spec.js b/test/specs/locales/nb-NO/index.spec.js new file mode 100644 index 00000000..4c1794ae --- /dev/null +++ b/test/specs/locales/nb-NO/index.spec.js @@ -0,0 +1,89 @@ +import { expect } from "chai"; + +import Fakerator from "lib"; + +describe("Locale nb-NO", () => { + + let fakerator; + + beforeEach( () => { + fakerator = new Fakerator("nb-NO"); + fakerator.seed(4100); + }); + + it("check locale definitions", () => { + expect(fakerator.locale.names).to.be.an("Object"); + expect(fakerator.locale.names.firstNameM).to.be.length(50); + + expect(fakerator.locale.phone).to.be.an("Object"); + expect(fakerator.locale.address).to.be.an("Object"); + expect(fakerator.locale.company).to.be.an("Object"); + expect(fakerator.locale.internet).to.be.an("Object"); + }); + + it("check names definitions", () => { + expect(fakerator.names.firstNameM()).to.be.equal("Sebastian"); + expect(fakerator.names.firstNameF()).to.be.equal("Sunniva"); + expect(fakerator.names.lastName()).to.be.equal("Holm"); + expect(fakerator.names.nameM()).to.be.equal("Markus Edvardsen"); + expect(fakerator.names.nameF()).to.be.equal("Aurora Aasen"); + }); + + it("check company definitions", () => { + expect(fakerator.company.name()).to.be.equal("Fredriksen ASA"); + }); + + it("check phone definitions", () => { + expect(fakerator.phone.number()).to.be.equal("86 38 09 96"); + }); + + it("check address definitions", () => { + expect(fakerator.address.city()).to.be.equal("Utsjøen"); + expect(fakerator.address.street()).to.be.equal("Vestre Eikeåsen"); + expect(fakerator.address.streetName()).to.be.equal("Sjø"); + expect(fakerator.address.buildingNumber()).to.be.equal("65"); + expect(fakerator.address.postCode()).to.be.equal("4577"); + + expect(fakerator.address.country()).to.be.equal("Tyrkia"); + + expect(fakerator.address.state()).to.be.undefined; + }); + + it("check internet definitions", () => { + expect(fakerator.internet.userName()).to.be.equal("andersholm09"); + expect(fakerator.internet.domain()).to.be.equal("elise-olsen.biz"); + expect(fakerator.internet.email()).to.be.equal("maren.nygrd@gmail.com"); + }); + + it("check entity.user", () => { + let user = fakerator.entity.user(); + expect(user).to.be.an("Object"); + //console.log(user); + + expect(user).to.have.property("firstName").an("String"); + expect(user).to.have.property("lastName").an("String"); + expect(user).to.have.property("userName").an("String"); + expect(user).to.have.property("password").an("String"); + expect(user).to.have.property("email").an("String"); + expect(user).to.have.property("phone").an("String"); + expect(user).to.have.property("dob").an("Date"); + expect(user).to.have.property("website").an("String"); + expect(user).to.have.property("ip").an("String"); + expect(user).to.have.property("avatar").an("String"); + expect(user).to.have.property("gravatar").an("String"); + expect(user).to.have.property("status").an("Boolean"); + expect(user).to.have.property("address").an("Object"); + + expect(user.address).to.have.property("country").an("String"); + expect(user.address).to.have.property("countryCode").an("String").length(2); + expect(user.address.state).to.be.undefined; + expect(user.address).to.have.property("city").an("String"); + expect(user.address).to.have.property("street").an("String"); + expect(user.address).to.have.property("zip").an("String"); + expect(user.address).to.have.property("geo").an("Object"); + expect(user.address.geo).to.have.property("latitude").an("Number"); + expect(user.address.geo).to.have.property("longitude").an("Number"); + + }); + +}); \ No newline at end of file