Skip to content

Commit

Permalink
adding schema for internet.userAgent
Browse files Browse the repository at this point in the history
cliffpyles authored and Marak committed Feb 8, 2016

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 79f54d9 commit 91b99c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/internet.js
Original file line number Diff line number Diff line change
@@ -148,6 +148,11 @@ var Internet = function (faker) {
return random_ua.generate();
};

self.userAgent.schema = {
"description": "Generates a user agent.",
"sampleResult": "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_5 rv:6.0; SL) AppleWebKit/532.0.1 (KHTML, like Gecko) Version/7.1.6 Safari/532.0.1"
};

self.color = function (baseRed255, baseGreen255, baseBlue255) {
baseRed255 = baseRed255 || 0;
baseGreen255 = baseGreen255 || 0;

0 comments on commit 91b99c1

Please sign in to comment.