diff options
| author | Bryan Donovan <[email protected]> | 2013-01-07 14:39:22 -0800 |
|---|---|---|
| committer | Bryan Donovan <[email protected]> | 2013-01-07 14:39:22 -0800 |
| commit | 1a5f918b700d848cbcd2f159aff1886d52b0e9af (patch) | |
| tree | be9c285c57bcf6f607cd659e0cecbb25687bb2ed /test/lorem.unit.js | |
| parent | 2659968f341800a2e84c191a90d97325bbb80f53 (diff) | |
| download | faker-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.js | 8 |
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 () { |
