Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Mar 29, 2022
1 parent 151529e commit 444eb43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions checks/cii_best_practices_test.go
Expand Up @@ -66,21 +66,21 @@ func TestCIIBestPractices(t *testing.T) {
name: "InProgressBadge",
badgeLevel: clients.InProgress,
expected: scut.TestReturn{
Score: inProgressScore,
Score: 2,
},
},
{
name: "PassingBadge",
badgeLevel: clients.Passing,
expected: scut.TestReturn{
Score: passingScore,
Score: 5,
},
},
{
name: "SilverBadge",
badgeLevel: clients.Silver,
expected: scut.TestReturn{
Score: silverScore,
Score: 7,
},
},
{
Expand Down
1 change: 1 addition & 0 deletions checks/evaluation/cii_best_practices.go
Expand Up @@ -21,6 +21,7 @@ import (
sce "github.com/ossf/scorecard/v4/errors"
)

// Note: exported for unit tests.
const (
silverScore = 7
// Note: if this value is changed, please update the action's threshold score
Expand Down

0 comments on commit 444eb43

Please sign in to comment.