diff options
Diffstat (limited to 'spec/graphql/types/query_type_spec.rb')
-rw-r--r-- | spec/graphql/types/query_type_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/graphql/types/query_type_spec.rb b/spec/graphql/types/query_type_spec.rb index 9a8f2090cc1..6a43867f1fe 100644 --- a/spec/graphql/types/query_type_spec.rb +++ b/spec/graphql/types/query_type_spec.rb @@ -26,6 +26,7 @@ RSpec.describe GitlabSchema.types['Query'] do runner_platforms runner runners + timelogs ] expect(described_class).to have_graphql_fields(*expected_fields).at_least @@ -125,4 +126,14 @@ RSpec.describe GitlabSchema.types['Query'] do it { is_expected.to have_graphql_type(Types::Packages::PackageDetailsType) } end + + describe 'timelogs field' do + subject { described_class.fields['timelogs'] } + + it 'returns timelogs' do + is_expected.to have_graphql_arguments(:startDate, :endDate, :startTime, :endTime, :username, :projectId, :groupId, :after, :before, :first, :last) + is_expected.to have_graphql_type(Types::TimelogType.connection_type) + is_expected.to have_graphql_resolver(Resolvers::TimelogResolver) + end + end end |