aboutsummaryrefslogtreecommitdiff
path: root/test/string.spec.ts
diff options
context:
space:
mode:
authorDivisionByZero <[email protected]>2023-01-29 17:28:13 +0100
committerGitHub <[email protected]>2023-01-29 16:28:13 +0000
commit7bc4a099558318c690d0101dc4765c08dee2c840 (patch)
treef61296db6953c65c332210798ca34a755583a4fc /test/string.spec.ts
parentcec78775e995ece1e6004e8aece6304820126296 (diff)
downloadfaker-7bc4a099558318c690d0101dc4765c08dee2c840.tar.xz
faker-7bc4a099558318c690d0101dc4765c08dee2c840.zip
refactor(string): rename `special` to `symbol` (#1789)
Diffstat (limited to 'test/string.spec.ts')
-rw-r--r--test/string.spec.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/string.spec.ts b/test/string.spec.ts
index 5c256a32..c3da56f1 100644
--- a/test/string.spec.ts
+++ b/test/string.spec.ts
@@ -119,7 +119,7 @@ describe('string', () => {
.it('with length range', { min: 13, max: 37 });
});
- t.describe('special', (t) => {
+ t.describe('symbol', (t) => {
t.it('noArgs')
.itRepeated('with length parameter', 5, 5)
.it('with length range', { min: 10, max: 20 });
@@ -782,14 +782,14 @@ describe('string', () => {
describe('special', () => {
it('should return a value of type string with default length of 1', () => {
- const actual = faker.string.special();
+ const actual = faker.string.symbol();
expect(actual).toBeTypeOf('string');
expect(actual).toHaveLength(1);
});
it('should return an empty string when length is negative', () => {
- const actual = faker.string.special(
+ const actual = faker.string.symbol(
faker.number.int({ min: -1000, max: -1 })
);
@@ -799,13 +799,13 @@ describe('string', () => {
it('should return string of designated length', () => {
const length = 87;
- const actual = faker.string.special(length);
+ const actual = faker.string.symbol(length);
expect(actual).toHaveLength(length);
});
it('should return string with a length within a given range', () => {
- const actual = faker.string.special({ min: 10, max: 20 });
+ const actual = faker.string.symbol({ min: 10, max: 20 });
expect(actual.length).toBeGreaterThanOrEqual(10);
expect(actual.length).toBeLessThanOrEqual(20);