Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
894
Issues
894
List
Boards
Labels
Service Desk
Milestones
Merge Requests
45
Merge Requests
45
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
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
7816c046
Commit
7816c046
authored
1 hour ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) change spec message for selector.component
parent
fe3fcb81
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#81114314
passed with stages
in 57 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
selector.component.spec.ts
...omponents/poster-date-selector/selector.component.spec.ts
+2
-2
No files found.
src/app/common/components/poster-date-selector/selector.component.spec.ts
View file @
7816c046
...
...
@@ -73,14 +73,14 @@ describe('PosterDateSelectorComponent', () => {
);
}));
it
(
'
should emit onError when date less than 5 minutes
'
,
fakeAsync
(()
=>
{
it
(
'
should emit onError when date less than 5 minutes
or in the past
'
,
fakeAsync
(()
=>
{
spyOn
(
comp
.
onError
,
'
emit
'
);
const
testDate
=
new
Date
();
comp
.
onDateChange
(
testDate
.
toString
());
let
timeDate
=
testDate
.
getTime
();
timeDate
=
Math
.
floor
(
timeDate
/
1000
);
expect
(
comp
.
onError
.
emit
).
toHaveBeenCalledWith
(
"
Scheduled date can't be less than 5 minutes
"
"
Scheduled date can't be less than 5 minutes
or in the past
"
);
}));
});
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