Skip to content

Commit

Permalink
github-check: add a test for requests from old reviewdog CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Jul 22, 2020
1 parent cf9b48c commit 71d3105
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doghouse/server/doghouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ func TestCheck_OK(t *testing.T) {
},
},
},
{
Path: "sample.new.txt",
Line: 2,
Message: "request from old clients",
},
},
Level: "warning",
}
Expand Down Expand Up @@ -219,6 +224,14 @@ func TestCheck_OK(t *testing.T) {
Message: github.String("test severity override"),
Title: github.String("[haya14busa-linter] sample.new.txt#L2"),
},
{
Path: github.String("sample.new.txt"),
StartLine: github.Int(2),
EndLine: github.Int(2),
AnnotationLevel: github.String("warning"),
Message: github.String("request from old clients"),
Title: github.String("[haya14busa-linter] sample.new.txt#L2"),
},
}
if d := cmp.Diff(annotations, wantAnnotations); d != "" {
t.Errorf("Annotation diff found:\n%s", d)
Expand Down

0 comments on commit 71d3105

Please sign in to comment.