Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Anema committed Apr 13, 2020
1 parent c7d0bc7 commit daa0c6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/shopify-cli/admin_api/schema_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class SchemaTest < MiniTest::Test
include TestHelpers::Constants

def setup
@test_obj = AdminAPI::Schema[JSON.parse(File.read(File.join(ShopifyCli::ROOT, "test/fixtures/shopify_schema.json")))]
json_data = File.read(File.join(ShopifyCli::ROOT, "test/fixtures/shopify_schema.json"))
@test_obj = AdminAPI::Schema[JSON.parse(json_data)]
@enum = {
"kind" => "ENUM",
"name" => "WebhookSubscriptionTopic",
Expand Down
3 changes: 2 additions & 1 deletion test/test_helpers/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module TestHelpers
module Schema
def setup
super
schema = ShopifyCli::AdminAPI::Schema[JSON.parse(File.read(File.join(ShopifyCli::ROOT, "test/fixtures/shopify_schema.json")))]
json_data = File.read(File.join(ShopifyCli::ROOT, "test/fixtures/shopify_schema.json"))
schema = ShopifyCli::AdminAPI::Schema[JSON.parse(json_data)]
ShopifyCli::AdminAPI::Schema.stubs(:get).returns(schema)
end
end
Expand Down

0 comments on commit daa0c6f

Please sign in to comment.