mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Renaming options_text to unit_text so that we can use method from included VariantAndLineItemNaming module
This commit is contained in:
@@ -92,6 +92,6 @@ describe 'Cart service', ->
|
||||
variant =
|
||||
product_name: 'product_name'
|
||||
name_to_display: 'name_to_display'
|
||||
options_text: 'options_text'
|
||||
unit_text: 'unit_text'
|
||||
|
||||
expect(Cart.extendedVariantName(variant)).toEqual "product_name - name_to_display (options_text)"
|
||||
expect(Cart.extendedVariantName(variant)).toEqual "product_name - name_to_display (unit_text)"
|
||||
|
||||
Reference in New Issue
Block a user