Commit f1758b84 authored by Justin Ho's avatar Justin Ho

Remove redundant init code in specs

And pass default value of feature flag from yaml
parent a029a4b7
......@@ -2,6 +2,6 @@
module JiraConnectHelper
def new_jira_connect_ui?
Feature.enabled?(:new_jira_connect_ui, type: :development)
Feature.enabled?(:new_jira_connect_ui, type: :development, default_enabled: :yaml)
end
end
......@@ -24,11 +24,7 @@ describe('JiraConnectApp', () => {
describe('template', () => {
it('renders new UI', () => {
createComponent({
provide: {
glFeatures: { newJiraConnectUi: true },
},
});
createComponent();
expect(findHeader().exists()).toBe(true);
expect(findHeaderText()).toBe('Linked namespaces');
......
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