CST-6153 updated lint error

This commit is contained in:
Nikunj Sharma
2022-09-06 17:02:25 +05:30
parent 77d0600453
commit 66380857c9
2 changed files with 3 additions and 3 deletions

View File

@@ -219,7 +219,7 @@ describe('ProfilePageComponent', () => {
component.setCurrentPasswordValue('current-password');
operations = [
{ "op": "add", "path": "/password", "value": { "password": "testest", "challenge": "current-password" } }
{ 'op': 'add', 'path': '/password', 'value': { 'password': 'testest', 'challenge': 'current-password' } }
];
result = component.updateSecurity();
});
@@ -243,7 +243,7 @@ describe('ProfilePageComponent', () => {
component.setInvalid(false);
component.setCurrentPasswordValue('current-password');
operations = [
{ "op": "add", "path": "/password", "value": {"password": "testest", "challenge": "current-password" }}
{ 'op': 'add', 'path': '/password', 'value': {'password': 'testest', 'challenge': 'current-password' }}
];
result = component.updateSecurity();
epersonService.patch(user, operations).subscribe((response) => {

View File

@@ -147,7 +147,7 @@ export class ProfilePageComponent implements OnInit {
}
if (!this.invalidSecurity && passEntered) {
const operations = [
{ "op": "add", "path": "/password", "value": { "password": this.password, "challenge": this.currentPassword } }
{ 'op': 'add', 'path': '/password', 'value': { 'password': this.password, 'challenge': this.currentPassword } }
] as Operation[];
this.epersonService.patch(this.currentUser, operations).pipe(getFirstCompletedRemoteData()).subscribe((response: RemoteData<EPerson>) => {
if (response.hasSucceeded) {