Skip to content

Commit

Permalink
add chance mocha and pw
Browse files Browse the repository at this point in the history
  • Loading branch information
iamqarv committed Sep 26, 2023
1 parent 6f244f9 commit 570e354
Show file tree
Hide file tree
Showing 12 changed files with 1,356 additions and 0 deletions.
21 changes: 21 additions & 0 deletions chancejs-random-data-generator/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions chancejs-random-data-generator/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "learnwithrv-chancejs",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"chance": "^1.1.11"
}
}
8 changes: 8 additions & 0 deletions chancejs-random-data-generator/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
let chance = require('chance').Chance();

console.log(chance.email());
console.log(chance.email({domain: "rv.com"}));
console.log(chance.word({length:6}));
console.log(chance.first()); // first name
console.log(chance.city());
console.log(chance.sentence({words: 3}));
Loading

0 comments on commit 570e354

Please sign in to comment.