Skip to content

Commit

Permalink
fix(CE): resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
afthabvp committed Dec 26, 2024
1 parent 5659562 commit 840933a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 0 additions & 3 deletions server/spec/requests/api/v1/models_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
expect(response_hash[:data].count).to eql(8)
expect(response_hash.dig(:data, 0, :type)).to eq("models")
expect(response_hash.dig(:links, :first)).to include("http://www.example.com/api/v1/models?page=1&per_page=20")
<<<<<<< HEAD
=======
end

it "returns success and no models when the data is empty" do
Expand All @@ -75,7 +73,6 @@
expect(response_hash.dig(:links, :last)).to include("http://www.example.com/api/v1/models?page=1")
expect(response_hash.dig(:links, :next)).to be_nil
expect(response_hash.dig(:links, :prev)).to be_nil
>>>>>>> ac183819 (chore(CE): list api accept per page (#732))
end

it "returns success and all mode for viewer role" do
Expand Down
11 changes: 3 additions & 8 deletions server/spec/requests/api/v1/sync_runs_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,13 @@

context "when it is an authenticated user" do
it "returns success and fetch sync " do
<<<<<<< HEAD
<<<<<<< HEAD
get "/api/v1/syncs/#{sync.id}/sync_runs", headers: auth_headers(user, workspace_id)
=======
=======
>>>>>>> ac183819 (chore(CE): list api accept per page (#732))
get "/api/v1/syncs/#{sync.id}/sync_runs?page=1&per_page=20", headers: auth_headers(user, workspace_id)
response_hash = JSON.parse(response.body).with_indifferent_access
>>>>>>> ac183819 (chore(CE): list api accept per page (#732))
expect(response).to have_http_status(:ok)
response_hash = JSON.parse(response.body).with_indifferent_access
expect(response_hash[:data].size).to eq(2)
first_row_date = DateTime.parse(response_hash[:data].first.dig(:attributes, :updated_at))
second_row_date = DateTime.parse(response_hash[:data].last.dig(:attributes, :updated_at))
expect(first_row_date).to be > second_row_date
response_hash[:data].each_with_index do |row, _index|
sync_run = sync_runs.find { |sr| sr.id == row[:id].to_i }

Expand Down

0 comments on commit 840933a

Please sign in to comment.