|
|
@@ -58,3 +58,32 @@ test('message', t => { |
|
|
|
t.is(message.text, state.message.text); |
|
|
|
t.is(message.status, state.message.status); |
|
|
|
}); |
|
|
|
|
|
|
|
test('optionsDifferentFromDefault', t => { |
|
|
|
t.false(getters.optionsDifferentFromDefault({ |
|
|
|
password: { |
|
|
|
login: "test@example.org", |
|
|
|
site: "example.org", |
|
|
|
uppercase: true, |
|
|
|
lowercase: true, |
|
|
|
numbers: true, |
|
|
|
symbols: true, |
|
|
|
length: 16, |
|
|
|
counter: 1, |
|
|
|
version: 2 |
|
|
|
} |
|
|
|
})); |
|
|
|
t.true(getters.optionsDifferentFromDefault({ |
|
|
|
password: { |
|
|
|
login: "test@example.org", |
|
|
|
site: "example.org", |
|
|
|
uppercase: true, |
|
|
|
lowercase: true, |
|
|
|
numbers: true, |
|
|
|
symbols: false, |
|
|
|
length: 32, |
|
|
|
counter: 1, |
|
|
|
version: 1 |
|
|
|
} |
|
|
|
})); |
|
|
|
}); |