diff options
author | Michael Muré <batolettre@gmail.com> | 2022-08-20 11:01:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 11:01:37 +0200 |
commit | 855684149740e2fb8eec21f3d97df2eba39b27c5 (patch) | |
tree | a3bd60a9f533fc6fc11a094038d095510210cd23 /query/parser_test.go | |
parent | 58df94d38d754bff4dcca11e2ae4b99326a9a87e (diff) | |
parent | 8818d091e85087766d7f493b7dfaf1aedc3a4ab0 (diff) | |
download | git-bug-855684149740e2fb8eec21f3d97df2eba39b27c5.tar.gz |
Merge pull request #856 from MichaelMure/common-status
move bug.Status in entities/common for reuse
Diffstat (limited to 'query/parser_test.go')
-rw-r--r-- | query/parser_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/query/parser_test.go b/query/parser_test.go index d07f8514..f2aeb0e9 100644 --- a/query/parser_test.go +++ b/query/parser_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/MichaelMure/git-bug/entities/bug" + "github.com/MichaelMure/git-bug/entities/common" ) func TestParse(t *testing.T) { @@ -18,10 +18,10 @@ func TestParse(t *testing.T) { {":value", nil}, {"status:open", &Query{ - Filters: Filters{Status: []bug.Status{bug.OpenStatus}}, + Filters: Filters{Status: []common.Status{common.OpenStatus}}, }}, {"status:closed", &Query{ - Filters: Filters{Status: []bug.Status{bug.ClosedStatus}}, + Filters: Filters{Status: []common.Status{common.ClosedStatus}}, }}, {"status:unknown", nil}, @@ -84,7 +84,7 @@ func TestParse(t *testing.T) { &Query{ Search: []string{"search", "more terms"}, Filters: Filters{ - Status: []bug.Status{bug.OpenStatus}, + Status: []common.Status{common.OpenStatus}, Author: []string{"René Descartes"}, Participant: []string{"leonhard"}, Label: []string{"hello", "Good first issue"}, |