diff options
Diffstat (limited to 'spec/graphql/types/alert_management/alert_status_count_type_spec.rb')
-rw-r--r-- | spec/graphql/types/alert_management/alert_status_count_type_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/graphql/types/alert_management/alert_status_count_type_spec.rb b/spec/graphql/types/alert_management/alert_status_count_type_spec.rb new file mode 100644 index 00000000000..1c56028425e --- /dev/null +++ b/spec/graphql/types/alert_management/alert_status_count_type_spec.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe GitlabSchema.types['AlertManagementAlertStatusCountsType'] do + specify { expect(described_class.graphql_name).to eq('AlertManagementAlertStatusCountsType') } + + it 'exposes the expected fields' do + expected_fields = %i[ + all + open + triggered + acknowledged + resolved + ignored + ] + + expect(described_class).to have_graphql_fields(*expected_fields) + end +end |