2019-11-13 03:06:31 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitlabSchema.types['IssueSort'] do
|
|
|
|
it { expect(described_class.graphql_name).to eq('IssueSort') }
|
|
|
|
|
|
|
|
it_behaves_like 'common sort values'
|
|
|
|
|
|
|
|
it 'exposes all the existing issue sort values' do
|
2020-04-29 00:09:38 +00:00
|
|
|
expect(described_class.values.keys).to include(
|
|
|
|
*%w[DUE_DATE_ASC DUE_DATE_DESC RELATIVE_POSITION_ASC LABEL_PRIORITY_ASC LABEL_PRIORITY_DESC]
|
|
|
|
)
|
2019-11-13 03:06:31 +00:00
|
|
|
end
|
|
|
|
end
|