aboutsummaryrefslogtreecommitdiff
path: root/test/all.functional.js
diff options
context:
space:
mode:
authorFotoVerite <[email protected]>2014-05-17 15:35:45 -0400
committerFotoVerite <[email protected]>2014-05-17 15:35:45 -0400
commit3eee796fdff9f4226e211f01cd5926d3d05d28ae (patch)
treecdab238c20b7458b34da8f6e9933edbf4c83abea /test/all.functional.js
parentdaa95b3a4f3eb5131970271be3820ddb45d30022 (diff)
downloadfaker-3eee796fdff9f4226e211f01cd5926d3d05d28ae.tar.xz
faker-3eee796fdff9f4226e211f01cd5926d3d05d28ae.zip
Moving to major new version for change of package name for uppercase to lowercase.
Diffstat (limited to 'test/all.functional.js')
-rw-r--r--test/all.functional.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/all.functional.js b/test/all.functional.js
index 91327214..145002f1 100644
--- a/test/all.functional.js
+++ b/test/all.functional.js
@@ -1,7 +1,7 @@
if (typeof module !== 'undefined') {
var assert = require('assert');
var sinon = require('sinon');
- var Faker = require('../index');
+ var faker = require('../index');
}
// Basic smoke tests to make sure each method is at least implemented and returns a string.
@@ -28,7 +28,7 @@ describe("functional tests", function () {
describe(module, function () {
modules[module].forEach(function (meth) {
it(meth + "()", function () {
- var result = Faker[module][meth]();
+ var result = faker[module][meth]();
assert.ok(result);
});
});
@@ -37,10 +37,10 @@ describe("functional tests", function () {
describe("Address", function () {
it("zipCodeFormat()", function () {
- var result = Faker.Address.zipCodeFormat(0);
+ var result = faker.Address.zipCodeFormat(0);
assert.ok(!result.match(/-/));
- result = Faker.Address.zipCodeFormat(1);
+ result = faker.Address.zipCodeFormat(1);
assert.ok(result.match(/-/));
});
});