mirror of https://github.com/abpframework/abp.git
1 changed files with 25 additions and 0 deletions
@ -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