Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
reyraa committed Apr 26, 2017
1 parent c3ec49e commit d114646
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/app/components/login/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ app.component('login', {
},
controller: class login {

/* eslint no-param-reassign: ["error", { "props": false }] */

/* eslint no-param-reassign: ["error", { "props": false }] */
constructor($scope, $rootScope, $timeout, $document, $mdMedia, $cookies, $peers, Passphrase) {
this.$scope = $scope;
this.$rootScope = $rootScope;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/main/secondPass.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
md-dialog.dialog-second(aria-label='Generate a second passphrase of your account')
md-dialog.dialog-second(aria-label='Generate a second passphrase for your account')
form
md-toolbar
.md-toolbar-tools
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/main/setSecondPassDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ app.directive('setSecondPass', (setSecondPass, $peers, $rootScope, success, erro
scope.passConfirmSubmit = (secondsecret) => {
$peers.active.setSignature(secondsecret, attrs.publicKey, attrs.passphrase)
.then(() => {
success.dialog('Your second passphrase is successfully registered.');
success.dialog('Your second passphrase was successfully registered.');
})
.catch((err) => {
let text = '';
if (err.message === 'Missing sender second signature') {
text = 'You already have a second passphrase.';
} else if (/^(Account does not have enough LSK)/.test(err.message)) {
text = 'You don\'t have enought credit to register second passphrase.';
text = 'You have insuffcient funds to register a second passphrase.';
} else {
text = 'An error happended registering your second passphrase. Please try later.';
text = 'An error occurred while registering your second passphrase. Please try again.';
}
error.dialog({ text });
});
Expand Down
4 changes: 2 additions & 2 deletions src/test/components/login/login.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('Login controller', () => {
expect(spy).to.have.been.calledWith();
});

it('Listens for broadcasting onAfterSignup', () => {
it('listens for an onAfterSignup event', () => {
const spy = sinon.spy(controller, 'passConfirmSubmit');
$rootScope.$broadcast('onAfterSignup', {
passphrase: 'TEST_VALUE',
Expand Down Expand Up @@ -160,7 +160,7 @@ describe('Login controller', () => {
});

describe('devTestAccount()', () => {
it('calls passConfirmSubmit with timeoout if a passphrase is set in the cookies', () => {
it('calls passConfirmSubmit with timeout if a passphrase is set in the cookies', () => {
$cookies.put('passphrase', testPassphrase);
const spy = sinon.spy(controller, '$timeout');
controller.devTestAccount();
Expand Down
2 changes: 1 addition & 1 deletion src/test/components/login/passphrase.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Passphrase Directive', () => {
});

describe('PassphraseLink', () => {
it('should asign progress to its own $scope', () => {
it('should assign progress to its own $scope', () => {
expect($isolateScope.progress).to.not.equal(undefined);
expect($isolateScope.progress).to.equal(Passphrase.progress);
});
Expand Down
2 changes: 1 addition & 1 deletion src/test/components/main/setSecondPassDirective.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('setSecondPass Directive', () => {
});

describe('SetSecondPassLink', () => {
it('Listens for broadcasting onAfterSignup', () => {
it('listens for an onAfterSignup event', () => {
$peers.active = { setSignature() {} };
const mock = sinon.mock($peers.active);
const deffered = $q.defer();
Expand Down

0 comments on commit d114646

Please sign in to comment.