Skip to content

Commit 69a84d2

Browse files
test(unique): revert regex changes
1 parent 580246e commit 69a84d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unique.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('unique', () => {
109109
maxRetries: 9999,
110110
exclude: ['https', 'http'],
111111
});
112-
}).toThrowError(/Exceeded maxTime:/);
112+
}).toThrowError(/^Exceeded maxTime:/);
113113
});
114114

115115
it('should be possible to limit unique call by maxRetries', () => {
@@ -119,7 +119,7 @@ describe('unique', () => {
119119
maxRetries: 5,
120120
exclude: ['https', 'http'],
121121
});
122-
}).toThrowError(/Exceeded maxRetries:/);
122+
}).toThrowError(/^Exceeded maxRetries:/);
123123
});
124124

125125
it('should throw a FakerError instance on error', () => {

0 commit comments

Comments
 (0)