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 @@ ...@@ -2,6 +2,6 @@
module JiraConnectHelper module JiraConnectHelper
def new_jira_connect_ui? 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
end end
...@@ -24,11 +24,7 @@ describe('JiraConnectApp', () => { ...@@ -24,11 +24,7 @@ describe('JiraConnectApp', () => {
describe('template', () => { describe('template', () => {
it('renders new UI', () => { it('renders new UI', () => {
createComponent({ createComponent();
provide: {
glFeatures: { newJiraConnectUi: true },
},
});
expect(findHeader().exists()).toBe(true); expect(findHeader().exists()).toBe(true);
expect(findHeaderText()).toBe('Linked namespaces'); 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