From da30b66ffada8bfcd0241e869d48d47f800bc16c Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Tue, 4 Nov 2014 14:05:16 -0800 Subject: [PATCH] Fix tests --- spec/panel-container-element-spec.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/panel-container-element-spec.coffee b/spec/panel-container-element-spec.coffee index 3dd6b2b18..bb08c5409 100644 --- a/spec/panel-container-element-spec.coffee +++ b/spec/panel-container-element-spec.coffee @@ -34,9 +34,6 @@ describe "PanelContainerElement", -> element = container.getView() jasmineContent.appendChild(element) - it 'has a location attribute with value from the model', -> - expect(element.getAttribute('location')).toBe 'left' - it 'removes the element when the container is destroyed', -> expect(element.parentNode).toBe jasmineContent container.destroy() @@ -49,6 +46,7 @@ describe "PanelContainerElement", -> panel1 = new Panel({viewRegistry, item: new TestPanelContainerItem(), location: 'left'}) container.addPanel(panel1) expect(element.childNodes.length).toBe 1 + expect(element.childNodes[0].getAttribute('location')).toBe 'left' expect(element.childNodes[0].tagName).toBe 'ATOM-PANEL'