Skip to content

Commit

Permalink
style(esl-random-text): fix test titles
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n authored and fshovchko committed Dec 8, 2023
1 parent 6232fec commit 2272d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/esl-random-text/test/esl-random-text.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('ESLRandomText', () => {
expect(text.split(' ').length).toBe(10);
});

test('generates text with specified number of words and shuffles them', () => {
test('generates text with specified number of words (in a shuffle case)', () => {
const text = ESLRandomText.generateText(10, true);
expect(text.split(' ').length).toBe(10);
});
Expand Down Expand Up @@ -40,7 +40,7 @@ describe('ESLRandomText', () => {
expect(text.split(' ').length).toBe(10);
});

test('generates text with specified number of words and shuffles them', () => {
test('generates text with specified number of words (in a shuffle case)', () => {
const dom = ESLRandomText.generateTextHTML(10, 10, true);
const text = dom.replace(/<[^>]+>/g, '');
expect(text.split(' ').length).toBe(10);
Expand Down

0 comments on commit 2272d50

Please sign in to comment.