- It would take { crack_times_display.offline_slow_hashing_1e4_per_second } to crack this password.
- { suggestions.join(' ') }
+ { suggestions.join(' ') }
);
@@ -122,7 +119,6 @@ export default class PasswordStrength extends Component {
return 'orange';
default:
- case 0:
return 'red';
}
}
diff --git a/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js b/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js
index f00e27bdb37..ac616a87b9b 100644
--- a/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js
+++ b/js/src/ui/Form/PasswordStrength/passwordStrength.spec.js
@@ -33,6 +33,9 @@ describe('ui/Form/PasswordStrength', () => {
describe('rendering', () => {
it('renders', () => {
expect(render({ input: INPUT_A })).to.be.ok;
+ });
+
+ it('renders a linear progress', () => {
expect(render({ input: INPUT_A }).find('LinearProgress')).to.be.ok;
});