mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
Fixed NormalItemUpdateService tests
This commit is contained in:
parent
42944e54f0
commit
44a4456e00
@ -43,10 +43,10 @@ func TestNormalItemUpdateService_QualityAfterSellIn4Days(t *testing.T) {
|
||||
// Quality must not be lower than 0
|
||||
func TestNormalItemUpdateService_QualityNotLowerThan0(t *testing.T) {
|
||||
runTestCase(t, func(
|
||||
agedBrieItemUpdateService AgedBrieItemUpdateService,
|
||||
normalItemUpdateService NormalItemUpdateService,
|
||||
) {
|
||||
item := models.NewItem(&models.ItemModel{"Random normal item", -4, 0})
|
||||
agedBrieItemUpdateService.UpdateQuality(item)
|
||||
normalItemUpdateService.UpdateQuality(item)
|
||||
assert.Equal(t, item.Model.Quality, 0)
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user