Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
832
Issues
832
List
Boards
Labels
Service Desk
Milestones
Merge Requests
71
Merge Requests
71
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
563ad19a
Commit
563ad19a
authored
53 minutes ago
by
Emiliano Balbuena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(test): Fix spec tests
-subdomain=boost-campaigns
parent
08e9e9ac
goal/campaigns-1
No related merge requests found
Pipeline
#68535760
passed with stages
in 29 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
normalize-urn.ts
src/app/helpers/normalize-urn.ts
+3
-1
creator.component.spec.ts
src/app/modules/boost/creator/creator.component.spec.ts
+6
-0
No files found.
src/app/helpers/normalize-urn.ts
View file @
563ad19a
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
}
`
);
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/boost/creator/creator.component.spec.ts
View file @
563ad19a
...
...
@@ -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
:
[
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment