aboutsummaryrefslogtreecommitdiff
path: root/test/random.unit.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/random.unit.js')
-rw-r--r--test/random.unit.js6
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);
});
});