Skip to content

Commit

Permalink
Create index.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Jun 13, 2024
1 parent ca871c8 commit 9d3cf37
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// import {describe, expect, test} from '@jest/globals';
import { getPasswordStrengthLabel } from '../PasswordStrengthInput';

describe('check valid url', () => {
test('tooWeak label', () => {
expect(getPasswordStrengthLabel('tooWeak')).toBe('Too weak');
});

test('weak label', () => {
expect(getPasswordStrengthLabel('weak')).toBe('Weak');
});

test('medium label', () => {
expect(getPasswordStrengthLabel('medium')).toBe('Okay');
});

test('strong label', () => {
expect(getPasswordStrengthLabel('strong')).toBe('Strong');
});
});

0 comments on commit 9d3cf37

Please sign in to comment.