Skip to content

Commit

Permalink
Streamline tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diagramatics committed Oct 26, 2018
1 parent a39bec1 commit 8674380
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions addons/knobs/src/components/__tests__/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ describe('Select', () => {
};
});

describe('displays value', () => {
it('correctly maps option keys and values', () => {
const wrapper = shallow(<SelectType knob={knob} />);
it('correctly maps option keys and values', () => {
const wrapper = shallow(<SelectType knob={knob} />);

const green = wrapper.find('option').first();
expect(green.text()).toEqual('Green');
expect(green.prop('value')).toEqual('Green');
});
const green = wrapper.find('option').first();
expect(green.text()).toEqual('Green');
expect(green.prop('value')).toEqual('Green');
});
});

Expand All @@ -37,14 +35,12 @@ describe('Select', () => {
};
});

describe('displays value', () => {
it('correctly maps option keys and values', () => {
const wrapper = shallow(<SelectType knob={knob} />);
it('correctly maps option keys and values', () => {
const wrapper = shallow(<SelectType knob={knob} />);

const green = wrapper.find('option').first();
expect(green.text()).toEqual('green');
expect(green.prop('value')).toEqual('green');
});
const green = wrapper.find('option').first();
expect(green.text()).toEqual('green');
expect(green.prop('value')).toEqual('green');
});
});
});

0 comments on commit 8674380

Please sign in to comment.