summaryrefslogtreecommitdiff
path: root/spec/graphql/types/packages/composer/json_type_spec.rb
blob: af5194ffb4944b311a6e7d8f0cf5e87d19280e02 (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['PackageComposerJsonType'] do
  it { expect(described_class.graphql_name).to eq('PackageComposerJsonType') }

  it 'includes composer json files' do
    expected_fields = %w[
      name type license version
    ]

    expect(described_class).to include_graphql_fields(*expected_fields)
  end
end