From 49f0cea3b9b609ca643fa0e4e98f09076ad004c2 Mon Sep 17 00:00:00 2001 From: Danielle Adams Date: Mon, 2 Jul 2018 21:02:58 -0400 Subject: change shas to use hex chars --- test/git.unit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git.unit.js') diff --git a/test/git.unit.js b/test/git.unit.js index d32950c5..df86be0b 100644 --- a/test/git.unit.js +++ b/test/git.unit.js @@ -112,14 +112,14 @@ describe("git.js", function() { describe("commitSha()", function() { it("returns a random commit SHA", function() { var commitSha = faker.git.commitSha(); - assert.ok(commitSha.match(/^[a-z0-9]{40}$/)); + assert.ok(commitSha.match(/^[a-f0-9]{40}$/)); }); }); describe("shortSha()", function() { it("returns a random short SHA", function() { var shortSha = faker.git.shortSha(); - assert.ok(shortSha.match(/^[a-z0-9]{7}$/)); + assert.ok(shortSha.match(/^[a-f0-9]{7}$/)); }); }); }); -- cgit v1.2.3