mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-12 03:50:22 +00:00
Moving components required for variant overrides into appropriate modules
This commit is contained in:
@@ -9,7 +9,7 @@ describe "VariantOverridesCtrl", ->
|
||||
variantOverrides = {}
|
||||
|
||||
beforeEach ->
|
||||
module 'ofn.admin'
|
||||
module 'admin.variantOverrides'
|
||||
module ($provide) ->
|
||||
$provide.value 'SpreeApiKey', 'API_KEY'
|
||||
$provide.value 'variantOverrides', variantOverrides
|
||||
@@ -54,4 +54,4 @@ describe "VariantOverridesCtrl", ->
|
||||
expect(scope.updateError(data, 400)).toEqual "I had some trouble saving: Hub can't be blank, Variant can't be blank"
|
||||
|
||||
it "returns a generic message otherwise", ->
|
||||
expect(scope.updateError({}, 500)).toEqual "Oh no! I was unable to save your changes."
|
||||
expect(scope.updateError({}, 500)).toEqual "Oh no! I was unable to save your changes."
|
||||
|
||||
Reference in New Issue
Block a user