diff options
| author | Marak <[email protected]> | 2015-07-08 23:56:22 -0700 |
|---|---|---|
| committer | Marak <[email protected]> | 2015-07-08 23:56:22 -0700 |
| commit | 4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821 (patch) | |
| tree | 6fcbdb8eee0a7365c78043008c8dd5b6a51d39c5 /test/random.unit.js | |
| parent | edb7d482a40e98ce25cd6ba296818be14f291aa1 (diff) | |
| download | faker-4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821.tar.xz faker-4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821.zip | |
[api] [refactor] Rename `array_element` and `object_element` to camelCase. Set default max random number to 99999. Added default arguments to some methods.
Diffstat (limited to 'test/random.unit.js')
| -rw-r--r-- | test/random.unit.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/random.unit.js b/test/random.unit.js index ad4ec1c2..201c2267 100644 --- a/test/random.unit.js +++ b/test/random.unit.js @@ -71,15 +71,15 @@ describe("random.js", function () { }); }); - describe('array_element', function() { + describe('arrayElement', function() { it('returns a random element in the array', function() { var testArray = ['hello', 'to', 'you', 'my', 'friend']; - assert.ok(testArray.indexOf(faker.random.array_element(testArray)) > -1); + assert.ok(testArray.indexOf(faker.random.arrayElement(testArray)) > -1); }); it('returns a random element in the array when there is only 1', function() { var testArray = ['hello']; - assert.ok(testArray.indexOf(faker.random.array_element(testArray)) > -1); + assert.ok(testArray.indexOf(faker.random.arrayElement(testArray)) > -1); }); }); |
