From 7ad22c2e2aae2f5e6215bcdb91cf3fd28e727d92 Mon Sep 17 00:00:00 2001 From: LBuerstmayr Date: Mon, 1 Mar 2021 22:46:26 +0100 Subject: Issue 1114: New datatype module Current status: - moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype - moved respective test from random.unit to datatype.unit - tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called - adapted all lib files that use moved methods (mostly number) - adapted tests of respective files to spy on the correct method - adapted README in order to promote usage of method that logs a DeprecationWarning --- test/git.unit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/git.unit.js') diff --git a/test/git.unit.js b/test/git.unit.js index df86be0b..46e25724 100644 --- a/test/git.unit.js +++ b/test/git.unit.js @@ -31,7 +31,7 @@ describe("git.js", function() { sinon.spy(faker.internet, 'email'); sinon.spy(faker.name, 'firstName'); sinon.spy(faker.name, 'lastName'); - sinon.spy(faker.random, 'number'); + sinon.spy(faker.datatype, 'number'); }); afterEach(function() { @@ -40,13 +40,13 @@ describe("git.js", function() { faker.internet.email.restore(); faker.name.firstName.restore(); faker.name.lastName.restore(); - faker.random.number.restore(); + faker.datatype.number.restore(); }); it("returns merge entry at random", function() { faker.git.commitEntry(); - assert.ok(faker.random.number.called); + assert.ok(faker.datatype.number.called); }); it("returns a commit entry with git commit message and sha", function() { -- cgit v1.2.3