Skip to content

Commit

Permalink
chore: rename variables in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Dec 3, 2024
1 parent 7c1edcb commit 4794c0d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions test/modules/system.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ describe('system', () => {
() => {
describe('commonFileExt()', () => {
it('should return common file types', () => {
const fileExt = faker.system.commonFileExt();
const extList = [
const actual = faker.system.commonFileExt();
const extensions = [
'gif',
'htm',
'html',
Expand Down Expand Up @@ -96,11 +96,11 @@ describe('system', () => {
];

expect(
extList,
`generated common file ext should be one of [${extList.join(
extensions,
`generated common file ext should be one of [${extensions.join(
', '
)}]. Got "${fileExt}".`
).include(fileExt);
)}]. Got "${actual}".`
).include(actual);
});
});

Expand Down Expand Up @@ -164,15 +164,15 @@ describe('system', () => {

describe('fileExt()', () => {
it('should return file ext', () => {
const fileExt = faker.system.fileExt();
const actual = faker.system.fileExt();

expect(fileExt).toBeTypeOf('string');
expect(fileExt).not.toBe('');
expect(actual).toBeTypeOf('string');
expect(actual).not.toBe('');
});

it('should return file ext based on mimeType', () => {
const fileExt = faker.system.fileExt('text/plain');
const extList = [
const actual = faker.system.fileExt('text/plain');
const extensions = [
'txt',
'text',
'conf',
Expand All @@ -184,11 +184,11 @@ describe('system', () => {
];

expect(
extList,
`generated common file ext should be one of [${extList.join(
extensions,
`generated common file ext should be one of [${extensions.join(
','
)}]. Got "${fileExt}".`
).include(fileExt);
)}]. Got "${actual}".`
).include(actual);
});
});

Expand Down

0 comments on commit 4794c0d

Please sign in to comment.