Commit 563ad19a authored by Emiliano Balbuena's avatar Emiliano Balbuena

(test): Fix spec tests

-subdomain=boost-campaigns
No related merge requests found
Pipeline #68535760 passed with stages
in 29 minutes and 26 seconds
export default function normalizeUrn(urnOrGuid: string) {
if (!isNaN(<any> urnOrGuid)) {
if (!urnOrGuid) {
return '';
} else if (!isNaN(<any> urnOrGuid)) {
urnOrGuid = `urn:entity:${urnOrGuid}`;
} else if (urnOrGuid.indexOf('urn:') !== 0) {
console.warn(`Invalid URN: ${urnOrGuid}`);
......
......@@ -29,6 +29,7 @@ import { localWalletServiceMock } from '../../../../tests/local-wallet-service-m
import { sessionMock } from '../../../../tests/session-mock.spec';
import { Session } from '../../../services/session';
import { RouterTestingModule } from '@angular/router/testing';
import { MockComponent } from '../../../utils/mock';
/* tslint:disable */
@Component({
......@@ -374,6 +375,11 @@ describe('BoostCreatorComponent', () => {
BoostCategorySelectorMock,
BoostP2PSearchMock,
BoostCheckoutMock,
MockComponent({
selector: 'm-tooltip',
template: '<ng-content></ng-content>',
inputs: ['icon']
}),
],
imports: [FormsModule, RouterTestingModule],
providers: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment