Skip to content

Commit

Permalink
chore: remove exess test iterations for randomChar() #15 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
grempe authored Feb 11, 2022
1 parent 8a3230d commit 1d9aae2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/ulid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,10 @@ describe("ulid", function () {
});

describe("randomChar", function () {
it("should never return undefined", function () {
for (let x = 0; x < 320000; x++) {
it("should never return undefined or an empty string", function () {
for (let x = 0; x < 10000; x++) {
const randChar = randomChar();
expect(randChar).to.not.be.undefined;
}
});

it("should never return an empty string", function () {
for (let x = 0; x < 320000; x++) {
const randChar = randomChar();
expect(randChar).to.not.equal("");
}
});
Expand Down

0 comments on commit 1d9aae2

Please sign in to comment.