mirror of https://github.com/abpframework/abp
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…
Reference in new issue