Skip to content

Commit

Permalink
Update readme to reflect changes in #1
Browse files Browse the repository at this point in the history
  • Loading branch information
nbelzer committed Sep 5, 2024
1 parent 1bc5966 commit 3c66f6c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require "minitest-shopify"

class TestCard < MinitestShopify::LiquidTest
def test_renders_a_card
render template: "snippets/card", variables: { "comment" => default_comment }
render template: "snippets/card", variables: { comment: default_comment }
assert_text "Hello world!"
assert_text "John Doe"
end
Expand All @@ -26,12 +26,12 @@ class TestCard < MinitestShopify::LiquidTest

def default_comment
{
"id" => 1,
"created_at" => "2023-07-20T19:31:35Z",
"content" => "Hello world!",
"author" => {
"id" => 1,
"name" => "John Doe"
id: 1,
created_at: "2023-07-20T19:31:35Z",
content: "Hello world!",
author: {
id: 1,
name: "John Doe"
}
}
end
Expand All @@ -46,7 +46,7 @@ require "minitest-shopify"

class TestCardView < MinitestShopify::ViewTest
def test_javascript_enabled_card
render template: "snippets/js-card", variables: { "comment" => default_comment }
render template: "snippets/js-card", variables: { comment: default_comment }
within "#comment-1" do
assert_text "Javascript is enabled"
assert_no_text "Hello World"
Expand All @@ -57,8 +57,8 @@ class TestCardView < MinitestShopify::ViewTest

def default_comment
{
"id" => 1,
"content" => "Hello world!",
id: 1,
content: "Hello world!",
}
end
end
Expand Down

0 comments on commit 3c66f6c

Please sign in to comment.