Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define the fake method resolved_conversations in Fbe::Graph::Fake #71

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions lib/fbe/github_graph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,30 @@ class Fake
def query(_query)
{}
end

def resolved_conversations(_owner, _name, _number)
[
{
'id' => 'PRRT_kwDOK2_4A85BHZAR',
'isResolved' => true,
'comments' => {
'nodes' => [
{
'id' => 'PRRC_kwDOK2_4A85l3obO',
'body' => 'first message',
'author' => { '__typename' => 'User', 'login' => 'reviewer' },
'createdAt' => '2024-08-08T09:41:46Z'
},
{
'id' => 'PRRC_kwDOK2_4A85l3yTp',
'body' => 'second message',
'author' => { '__typename' => 'User', 'login' => 'programmer' },
'createdAt' => '2024-08-08T10:01:55Z'
}
]
}
}
]
end
end
end