diff options
| author | Carlos Carvalho <[email protected]> | 2020-10-04 02:05:11 -0300 |
|---|---|---|
| committer | Carlos Carvalho <[email protected]> | 2020-10-04 02:05:11 -0300 |
| commit | 2a938bd11b781f61718e2ddfb8a6419002d9e757 (patch) | |
| tree | d92c13067ee09c7e9e9cf7d5d22aff3b49c9262f /test/unique.unit.js | |
| parent | 91dc8a3372426bc691be56153b33e81a16459f49 (diff) | |
| download | faker-2a938bd11b781f61718e2ddfb8a6419002d9e757.tar.xz faker-2a938bd11b781f61718e2ddfb8a6419002d9e757.zip | |
Change deprecated assert.equal
Diffstat (limited to 'test/unique.unit.js')
| -rw-r--r-- | test/unique.unit.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unique.unit.js b/test/unique.unit.js index 47b38d9d..3681e0b3 100644 --- a/test/unique.unit.js +++ b/test/unique.unit.js @@ -9,7 +9,7 @@ describe("unique.js", function () { it("is able to call a function with no arguments and return a result", function () { var result = faker.unique(faker.internet.email); - assert.equal(typeof result, 'string'); + assert.strictEqual(typeof result, 'string'); }); it("is able to call a function with arguments and return a result", function () { @@ -24,7 +24,7 @@ describe("unique.js", function () { it("is able to exclude results as array", function () { var result = faker.unique(faker.internet.protocol, [], { exclude: ['https'] }); - assert.equal(result, 'http'); + assert.strictEqual(result, 'http'); }); it("is able to limit unique call by maxTime in ms", function () { @@ -32,7 +32,7 @@ describe("unique.js", function () { try { result = faker.unique(faker.internet.protocol, [], { maxTime: 1, maxRetries: 9999, exclude: ['https', 'http'] }); } catch (err) { - assert.equal(err.message.substr(0, 16), 'Exceeded maxTime'); + assert.strictEqual(err.message.substr(0, 16), 'Exceeded maxTime'); } }); @@ -41,7 +41,7 @@ describe("unique.js", function () { try { result = faker.unique(faker.internet.protocol, [], { maxTime: 5000, maxRetries: 5, exclude: ['https', 'http'] }); } catch (err) { - assert.equal(err.message.substr(0, 19), 'Exceeded maxRetries'); + assert.strictEqual(err.message.substr(0, 19), 'Exceeded maxRetries'); } }); |
