Commit 7816c046 authored by Juan Manuel Solaro's avatar Juan Manuel Solaro

(fix) change spec message for selector.component

1 merge request!494WIP: epic/post-scheduler
Pipeline #81114314 running with stages
......@@ -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"
);
}));
});
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