Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit f54972b

Browse files
darkowlzzibrasho
authored andcommitted
test(status): consolidated constraint with override
1 parent 45d3fa3 commit f54972b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmd/dep/status_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ func TestBasicStatusGetConsolidatedConstraint(t *testing.T) {
165165
},
166166
wantConstraint: "1.2.1",
167167
},
168+
{
169+
name: "BasicStatus with Override",
170+
basicStatus: BasicStatus{
171+
Constraint: aSemverConstraint,
172+
hasOverride: true,
173+
},
174+
wantConstraint: "1.2.1 (override)",
175+
},
168176
}
169177

170178
for _, tc := range testCases {

0 commit comments

Comments
 (0)