mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fixing unit test and lint issues after merging with storybook latest
This commit is contained in:
@@ -341,7 +341,7 @@ describe('CardViewDateItemComponent', () => {
|
|||||||
component.property.default = 'Jul 10 2017 00:01:00';
|
component.property.default = 'Jul 10 2017 00:01:00';
|
||||||
component.property.key = 'fake-key';
|
component.property.key = 'fake-key';
|
||||||
component.property.value = new Date('Jul 10 2017 00:01:00');
|
component.property.value = new Date('Jul 10 2017 00:01:00');
|
||||||
const expectedDate = new Date('Jul 10 2018 00:01:00');
|
const expectedDate = new Date('Jul 10 2018 00:00:00');
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
|
|
||||||
await fixture.whenStable();
|
await fixture.whenStable();
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { DateTimePipe } from './date-time.pipe';
|
import { DateTimePipe } from './date-time.pipe';
|
||||||
import { addMinutes, isValid } from 'date-fns';
|
import { addMinutes, isValid } from 'date-fns';
|
||||||
|
|
||||||
|
@@ -28,13 +28,10 @@ export default {
|
|||||||
title: 'Process Services Cloud/Process Cloud/Process Header Cloud/Process Header Cloud',
|
title: 'Process Services Cloud/Process Cloud/Process Header Cloud/Process Header Cloud',
|
||||||
decorators: [
|
decorators: [
|
||||||
moduleMetadata({
|
moduleMetadata({
|
||||||
imports: [ProcessHeaderCloudModule],
|
imports: [ProcessHeaderCloudModule]
|
||||||
}),
|
}),
|
||||||
applicationConfig({
|
applicationConfig({
|
||||||
providers: [
|
providers: [{ provide: ProcessCloudService, useClass: ProcessCloudServiceMock }, importProvidersFrom(ProcessServicesCloudStoryModule)]
|
||||||
{ provide: ProcessCloudService, useClass: ProcessCloudServiceMock },
|
|
||||||
importProvidersFrom(ProcessServicesCloudStoryModule)
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
argTypes: {
|
argTypes: {
|
||||||
|
Reference in New Issue
Block a user