-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* adds tags to issue list - fixes issue #23 * made code simpler - labels on newline * cleaner label filter plus test
- Loading branch information
1 parent
a5de519
commit 3d9ca6e
Showing
4 changed files
with
72 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package main | ||
|
||
import ( | ||
"reflect" | ||
"testing" | ||
) | ||
|
||
func TestLabelFilter(t *testing.T) { | ||
data := Labels{ | ||
{Name: "hacktoberfest", Color: "#ffffff"}, | ||
{Name: "help wanted", Color: "#ffffff"}, | ||
{Name: "test", Color: "#ffffff"}, | ||
} | ||
|
||
want := map[string]string{"test": "#ffffff"} | ||
got := labelFilter(data) | ||
|
||
if !reflect.DeepEqual(got, want) { | ||
t.Errorf("labelFilter(%v) failed", data) | ||
t.Errorf("got %v", got) | ||
t.Errorf("want %v", want) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ | |
.navbar img { | ||
height: 3em; | ||
} | ||
|
||
.is-issue-tag { | ||
margin-left: 6px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters