Fixing unit test and lint issues after merging with storybook latest

This commit is contained in:
VitoAlbano
2024-06-25 16:28:36 +01:00
parent 8259d3a957
commit 4ba076d75e
3 changed files with 4 additions and 6 deletions

View File

@@ -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();

View File

@@ -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';

View File

@@ -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: {