Welcome to mirror list, hosted at ThFree Co, Russian Federation.

issuable_sort_enum_spec.rb « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a680c8eae5e64e05c67cf6ff4bc9580df7fbdb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

describe Types::IssuableSortEnum do
  it { expect(described_class.graphql_name).to eq('IssuableSort') }

  it 'exposes all the existing issuable sort values' do
    expect(described_class.values.keys).to include(
      *%w[PRIORITY_ASC PRIORITY_DESC
          LABEL_PRIORITY_ASC LABEL_PRIORITY_DESC
          MILESTONE_DUE_ASC MILESTONE_DUE_DESC]
    )
  end
end