Skip to content

Commit

Permalink
Formatting profile.service and profile.service.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Feb 5, 2024
1 parent 439b233 commit 1c6868e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 6 additions & 3 deletions src/app/shared/services/profile/profile.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { RecordVO } from './../../../models/record-vo';
/* @format */
import { FolderPickerService } from '@core/services/folder-picker/folder-picker.service';
import { ArchiveVO, FolderVO } from '@models/index';
import { SharedModule } from '@shared/shared.module';
import { Shallow } from 'shallow-render';
import { ProfileItemVOData } from '@models/profile-item-vo';
import { RecordVO } from '../../../models/record-vo';
import { ArchiveResponse } from '../api/archive.repo';
import { AccountService } from '../account/account.service';
import { ApiService } from '../api/api.service';
import { MessageService } from '../message/message.service';
import { PrConstantsService } from '../pr-constants/pr-constants.service';
import { ProfileService } from './profile.service';
import { ProfileItemVOData } from '@models/profile-item-vo';
import { ArchiveResponse } from '../api/archive.repo';

const PROFILE_TEMPLATE = require('../../../../../constants/profile_template.json');

Expand Down Expand Up @@ -127,6 +127,7 @@ describe('ProfileService', () => {
(instance as any).profileItemDictionary = mockDictionary;

const progress = instance.calculateProfileProgress();

expect(progress).toBe(0.8);
});

Expand Down Expand Up @@ -182,6 +183,7 @@ describe('ProfileService', () => {
(instance as any).profileItemDictionary = mockDictionary;

const progress = instance.calculateProfileProgress();

expect(progress).toBe(1);
});

Expand All @@ -191,6 +193,7 @@ describe('ProfileService', () => {
(instance as any).profileItemDictionary = mockDictionary;

const progress = instance.calculateProfileProgress();

expect(progress).toBe(0);
});
});
2 changes: 0 additions & 2 deletions src/app/shared/services/profile/profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,6 @@ export class ProfileService {
const cols = CHECKLIST[fieldNameShort];
totalEntries += cols.length;

console.log(this.profileItemDictionary);

const itemToCheck = this.profileItemDictionary[fieldNameShort]?.[0];
if (itemToCheck) {
for (const col of cols) {
Expand Down

0 comments on commit 1c6868e

Please sign in to comment.