summaryrefslogtreecommitdiff
path: root/spec/graphql/types/notes/diff_position_type_spec.rb
blob: 87f3810d55cfde79d2d6f8d56085c876c0bb7eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

require 'spec_helper'

describe GitlabSchema.types['DiffPosition'] do
  it 'exposes the expected fields' do
    expected_fields = %i[
      diff_refs
      file_path
      height
      new_line
      new_path
      old_line
      old_path
      position_type
      width
      x
      y
    ]

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