diff options
Diffstat (limited to 'test/system.unit.js')
| -rw-r--r-- | test/system.unit.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/system.unit.js b/test/system.unit.js index dfcfcb0b..0198af62 100644 --- a/test/system.unit.js +++ b/test/system.unit.js @@ -9,7 +9,7 @@ describe("system.js", function () { it("returns unix fs directory full path", function () { sinon.stub(faker.random, 'words').returns('24/7'); var directoryPath = faker.system.directoryPath(); - assert.equal(directoryPath.indexOf('/'), 0, 'generated directoryPath should start with /'); + assert.strictEqual(directoryPath.indexOf('/'), 0, 'generated directoryPath should start with /'); faker.random.words.restore(); }); @@ -19,7 +19,7 @@ describe("system.js", function () { it("returns unix fs file full path", function () { sinon.stub(faker.random, 'words').returns('24/7'); var filePath = faker.system.filePath(); - assert.equal(filePath.indexOf('/'), 0, 'generated filePath should start with /'); + assert.strictEqual(filePath.indexOf('/'), 0, 'generated filePath should start with /'); faker.random.words.restore(); }); @@ -29,7 +29,7 @@ describe("system.js", function () { it("returns filenames without system path seperators", function () { sinon.stub(faker.random, 'words').returns('24/7'); var fileName = faker.system.fileName(); - assert.equal(fileName.indexOf('/'), -1, 'generated fileNames should not have path seperators'); + assert.strictEqual(fileName.indexOf('/'), -1, 'generated fileNames should not have path seperators'); faker.random.words.restore(); }); @@ -39,7 +39,7 @@ describe("system.js", function () { it("returns filenames without system path seperators", function () { sinon.stub(faker.random, 'words').returns('24/7'); var fileName = faker.system.commonFileName(); - assert.equal(fileName.indexOf('/'), -1, 'generated commonFileNames should not have path seperators'); + assert.strictEqual(fileName.indexOf('/'), -1, 'generated commonFileNames should not have path seperators'); faker.random.words.restore(); }); |
