From efb2a686fd3254cd13c010ddcaf5b298934fc15e Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 19 Dec 2015 15:02:28 +0200 Subject: [PATCH] Add projection test to zippy.spec --- lib/common/components/Zippy/zippy.spec.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/common/components/Zippy/zippy.spec.js b/lib/common/components/Zippy/zippy.spec.js index ac75d6e7..ca9affe3 100644 --- a/lib/common/components/Zippy/zippy.spec.js +++ b/lib/common/components/Zippy/zippy.spec.js @@ -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: - ` - test - ` + `test` }) class TestApp { constructor() {