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

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

require 'spec_helper'

RSpec.describe GitlabSchema.types['TimelogSort'], feature_category: :team_planning do
  specify { expect(described_class.graphql_name).to eq('TimelogSort') }

  it_behaves_like 'common sort values'

  it 'exposes all the contact sort values' do
    expect(described_class.values.keys).to include(
      *%w[
        SPENT_AT_ASC
        SPENT_AT_DESC
        TIME_SPENT_ASC
        TIME_SPENT_DESC
      ]
    )
  end
end