__mocks__/swiper_angular.ts
Mock component for swiper
selector | swiper |
template |
|
Inputs |
config | |
Defined in __mocks__/swiper_angular.ts:12
|
|
Configuration for Swiper |
import { Component, Input, NgModule } from '@angular/core';
import { Shallow } from 'shallow-render';
/** Mock component for swiper */
@Component({
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'swiper',
template: '<ng-content></ng-content>',
})
export class SwiperComponent {
/** Configuration for Swiper */
@Input() config: unknown;
}
@NgModule({
declarations: [SwiperComponent],
exports: [SwiperComponent],
})
export class SwiperModule {}
Shallow.neverMock(SwiperComponent, SwiperModule);