Commit 78bf5e1c authored by Tom Quirk's avatar Tom Quirk

Addressing reviewer feedback

- simplify selection of repositoryFeatureToggleButton
parent eb5142cf
......@@ -353,10 +353,7 @@ describe('Settings Panel', () => {
// mount over shallowMount, because we are aiming to test rendered state of toggle
wrapper = mountComponent({ currentSettings: { lfsEnabled: true } }, mount);
const repositoryFeatureSetting = findRepositoryFeatureSetting();
const repositoryFeatureToggleButton = repositoryFeatureSetting
.find(projectFeatureToggle)
.find('button');
const repositoryFeatureToggleButton = findRepositoryFeatureSetting().find('button');
const lfsFeatureToggleButton = findLFSFeatureToggle().find('button');
const isToggleButtonChecked = toggleButton => toggleButton.classes('is-checked');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment