mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +03:00
Add projection test to zippy.spec
This commit is contained in:
parent
c591f75468
commit
efb2a686fd
|
@ -51,6 +51,12 @@ describe('Zippy Component', () => {
|
|||
component.type.should.be.equal('test');
|
||||
});
|
||||
|
||||
it('project inner content', () => {
|
||||
fixture.detectChanges();
|
||||
let contentEl = nativeElement.querySelector('.zippy-content');
|
||||
expect(contentEl).toHaveText('\n test\n ');
|
||||
});
|
||||
|
||||
it('should open and close zippy', () => {
|
||||
fixture.detectChanges();
|
||||
component.empty = false;
|
||||
|
@ -91,9 +97,7 @@ describe('Zippy Component', () => {
|
|||
@View({
|
||||
directives: [Zippy],
|
||||
template:
|
||||
`<zippy title="Zippy" type="test" visible="true" empty="true" (open)="open()" (close)="close()">
|
||||
test
|
||||
</zippy>`
|
||||
`<zippy title="Zippy" type="test" visible="true" empty="true" (open)="open()" (close)="close()">test</zippy>`
|
||||
})
|
||||
class TestApp {
|
||||
constructor() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user