See Styled TodoApp Component
Story: As a user, I want my TodoApp component to be styled.
Should be styled correctly
It should have div styling applied in accordance with the design specs
diff --git a/tests/todomvc/components/TodoApp.spec.js b/tests/todomvc/components/TodoApp.spec.js
index e950657..80465f5 100644
--- a/tests/todomvc/components/TodoApp.spec.js
+++ b/tests/todomvc/components/TodoApp.spec.js
@@ -50,5 +50,17 @@ describe('TodoApp component', () => {
expect(div.children('MainSection')).to.have.length(1)
})
+ });
+
+ describe('Should be styled correctly', () => {
+ it('Should have styling applied in accordance with the design specs', () => {
+ const {component} = setup();
+ const div = component.find('div');
+
+ expect(div.find({style: {background: '#fff'}})).to.have.length(1);
+ expect(div.find({style: {margin: '130px 0 40px 0'}})).to.have.length(1);
+ expect(div.find({style: {position: 'relative'}})).to.have.length(1);
+ expect(div.find({style: {boxShadow: '0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1)'}})).to.have.length(1);
+ })
})
});
(END)Last updated
Was this helpful?