mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
[Admin, Enterprise Settings] Remove Angular from Business Details tab
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
151f96f673
commit
8f6fdf3e31
@@ -1,18 +0,0 @@
|
||||
describe "termsAndConditionsWarning", ->
|
||||
element = null
|
||||
templatecache = null
|
||||
|
||||
beforeEach ->
|
||||
module('admin.enterprises')
|
||||
|
||||
inject ($rootScope, $compile, $templateCache) ->
|
||||
templatecache = $templateCache
|
||||
el = angular.element("<input terms-and-conditions-warning=\"true\"></input>")
|
||||
element = $compile(el)($rootScope)
|
||||
$rootScope.$digest()
|
||||
|
||||
describe "terms and conditions warning", ->
|
||||
it "should load template", ->
|
||||
spyOn(templatecache, 'get')
|
||||
element.triggerHandler('click');
|
||||
expect(templatecache.get).toHaveBeenCalledWith('admin/modals/terms_and_conditions_warning.html')
|
||||
Reference in New Issue
Block a user