fix: rename Registration_test to Onboarding_test

pull/3056/head
William Grant 1 year ago
parent 4c48056013
commit 592b7ec1fd

@ -1,6 +1,8 @@
import Sinon from 'sinon'; import Sinon from 'sinon';
describe('Registration', () => { describe('Onboarding', () => {
// stubWindowLog();
// stubI18n();
// TODO set mnemonic generateMnemonic() ? // TODO set mnemonic generateMnemonic() ?
beforeEach(() => {}); beforeEach(() => {});
@ -10,11 +12,16 @@ describe('Registration', () => {
}); });
describe('displayNameIsValid', () => { describe('displayNameIsValid', () => {
// Arrange
// TODO different display names for testing // TODO different display names for testing
// const validDisplayName = displayNameIsValid(displayName); // const validDisplayName = displayNameIsValid(displayName);
// Act // it('it should throw an error if the display name is undefined', async () => {
// Assert // try {
// displayNameIsValid(undefined);
// } catch (error) {
// error.should.be.an.instanceOf(Error);
// error.message.should.equal(window.i18n('displayNameEmpty'));
// }
// });
}); });
describe('sanitizeDisplayNameOrToast', () => { describe('sanitizeDisplayNameOrToast', () => {
Loading…
Cancel
Save