aboutsummaryrefslogtreecommitdiff
path: root/test/lorem.unit.js
diff options
context:
space:
mode:
authorBryan Donovan <[email protected]>2013-01-07 14:39:22 -0800
committerBryan Donovan <[email protected]>2013-01-07 14:39:22 -0800
commit1a5f918b700d848cbcd2f159aff1886d52b0e9af (patch)
treebe9c285c57bcf6f607cd659e0cecbb25687bb2ed /test/lorem.unit.js
parent2659968f341800a2e84c191a90d97325bbb80f53 (diff)
downloadfaker-1a5f918b700d848cbcd2f159aff1886d52b0e9af.tar.xz
faker-1a5f918b700d848cbcd2f159aff1886d52b0e9af.zip
allowing all tests to run in browser
Diffstat (limited to 'test/lorem.unit.js')
-rw-r--r--test/lorem.unit.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/lorem.unit.js b/test/lorem.unit.js
index a99a5a58..4082bdde 100644
--- a/test/lorem.unit.js
+++ b/test/lorem.unit.js
@@ -1,6 +1,8 @@
-var assert = require('assert');
-var sinon = require('sinon');
-var Faker = require('../index');
+if (typeof module !== 'undefined') {
+ var assert = require('assert');
+ var sinon = require('sinon');
+ var Faker = require('../index');
+}
describe("lorem.js", function () {
describe("words()", function () {