File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -84,15 +84,6 @@ func TestNewDigester(t *testing.T) {
8484 })
8585}
8686
87- t .Run ("handles multiple WithIndex options, applying last one" , func (t * testing.T ) {
88- g := NewWithT (t )
89- firstIndex := map [string ]string {"a" : "b" }
90- secondIndex := map [string ]string {"c" : "d" }
91- d := NewDigester (WithIndex (firstIndex ), WithIndex (secondIndex ))
92- g .Expect (d .index ).To (Equal (secondIndex ))
93- })
94- }
95-
9687func TestDigester_Add (t * testing.T ) {
9788 t .Run ("adds" , func (t * testing.T ) {
9889 g := NewWithT (t )
@@ -169,8 +160,8 @@ func TestDigester_Delete(t *testing.T) {
169160 g := NewWithT (t )
170161 d := NewDigester ()
171162 d .Delete ("non-existent" )
172- g .Expect (d .index ).To (BeEmpty ()) // Index should remain empty
173- g .Expect (d .digests ).To (BeEmpty ()) // Digests should remain empty as no change
163+ g .Expect (d .index ).To (BeEmpty ())
164+ g .Expect (d .digests ).To (BeEmpty ())
174165 })
175166}
176167
You can’t perform that action at this time.
0 commit comments