# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['VulnerabilitySort'] do
  it { expect(described_class.graphql_name).to eq('VulnerabilitySort') }

  it 'exposes all the existing Vulnerability sort orders' do
    expect(described_class.values.keys).to include(*%w[severity_desc severity_asc title_desc title_asc detected_desc detected_asc report_type_desc report_type_asc state_desc state_asc])
  end
end
