mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Display count of dirty variant overrides
This commit is contained in:
@@ -38,3 +38,24 @@ describe "maintaining a list of dirty variant overrides", ->
|
||||
hub_id: 2
|
||||
price: 3
|
||||
count_on_hand: 4
|
||||
|
||||
it "counts dirty variant overrides", ->
|
||||
DirtyVariantOverrides.dirtyVariantOverrides =
|
||||
2:
|
||||
1:
|
||||
variant_id: 5
|
||||
hub_id: 6
|
||||
price: 7
|
||||
count_on_hand: 8
|
||||
3:
|
||||
variant_id: 9
|
||||
hub_id: 10
|
||||
price: 11
|
||||
count_on_hand: 12
|
||||
4:
|
||||
5:
|
||||
variant_id: 13
|
||||
hub_id: 14
|
||||
price: 15
|
||||
count_on_hand: 16
|
||||
expect(DirtyVariantOverrides.count()).toEqual 3
|
||||
|
||||
Reference in New Issue
Block a user