summaryrefslogtreecommitdiff
path: root/spec/graphql/types/issue_sort_enum_spec.rb
blob: 95184477e7542d0c7b4bc2bf9f676065e94cb83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['IssueSort'] do
  specify { expect(described_class.graphql_name).to eq('IssueSort') }

  it_behaves_like 'common sort values'

  it 'exposes all the existing issue sort values' do
    expect(described_class.values.keys).to include(
      *%w[DUE_DATE_ASC DUE_DATE_DESC RELATIVE_POSITION_ASC SEVERITY_ASC SEVERITY_DESC ESCALATION_STATUS_ASC ESCALATION_STATUS_DESC]
    )
  end
end