# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Types::DoraType do
  it 'has the expected fields' do
    expect(described_class).to have_graphql_fields(:metrics)
  end

  describe 'metrics field' do
    subject { described_class.fields['metrics'] }

    it { is_expected.to have_graphql_resolver(Resolvers::DoraMetricsResolver) }
  end
end
