Skip to content

Commit

Permalink
NAS-132517: Cloud credentials storJ text does not render link correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKarpov98 committed Nov 18, 2024
1 parent 3fb4e8b commit cf3d06f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
<div class="name">{{ name() }}</div>
</div>
<div class="body">
<p>{{ description() }}</p>
<p [innerHTML]="description()"></p>
</div>
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { createComponentFactory, Spectator } from '@ngneat/spectator/jest';
import { ImgFallbackModule } from 'ngx-img-fallback';
import { CloudSyncProviderName } from 'app/enums/cloudsync-provider.enum';
import {
cloudsyncProviderDescriptionMap,
} from 'app/pages/data-protection/cloudsync/cloudsync-provider-description/cloudsync-provider-description';
import { CloudSyncProviderDescriptionComponent } from './cloudsync-provider-description.component';

describe('CloudSyncProviderDescriptionComponent', () => {
Expand Down Expand Up @@ -31,6 +28,6 @@ describe('CloudSyncProviderDescriptionComponent', () => {
expect(name).toHaveText('Storj');

const description = spectator.query('.body');
expect(description).toHaveText(cloudsyncProviderDescriptionMap.get(CloudSyncProviderName.Storj));
expect(description).not.toContain('<a href');
});
});

0 comments on commit cf3d06f

Please sign in to comment.