test card-img-top directive

pull/16122/head
Barış Can Yılmaz 3 years ago
parent 64eeb5a133
commit dca52ecff0

@ -0,0 +1,25 @@
import { createHostFactory, SpectatorHost } from '@ngneat/spectator';
import { CardImgTop } from '../components';
describe('AbpCardImgTopDirective', () => {
let spectator: SpectatorHost<CardImgTop>;
const createHost = createHostFactory(CardImgTop);
beforeEach(
() =>
(spectator = createHost(
`<img
abpCardImgTop
/>`,
)),
);
it('should create an instance', () => {
expect(spectator).toBeTruthy();
});
it('should have class card-img-top', () => {
expect(spectator.element.classList).toContain('card-img-top');
});
});
Loading…
Cancel
Save