Skip to content

Instantly share code, notes, and snippets.

@thomasguillory
Created June 27, 2014 08:11
Show Gist options
  • Save thomasguillory/cbdef870851e80647c3d to your computer and use it in GitHub Desktop.
Save thomasguillory/cbdef870851e80647c3d to your computer and use it in GitHub Desktop.
# Mock modules
bs = angular.module 'ui.bootstrap', []
xed = angular.module 'xeditable', []
pp = angular.module 'pascalprecht.translate', []
routeModule = angular.module 'ngRoute', []
angular.module '$strap.directives', []
angular.module 'ui.calendar', []
angular.module 'ui.sortable', []
angular.module 'colorpicker.module', []
angular.module 'ngSanitize', []
angular.module 'ui.utils', []
# fake google icon
google =
maps:
SymbolPath:
CIRCLE = {}
MapTypeId:
ROADMAP = {}
# Mock service that could be inject
bs.factory '$dialog', ->
bs.provider '$modal', ->
$get: ->
$modal =
open: ->
pp.provider '$translate', ->
preferredLanguage: ->
$get: ->
-> ''
xed.factory 'editableOptions', ->
{}
routeModule.provider '$route', ->
$get: ->
reload: ->
when: -> @
otherwise: -> @
printStackTrace = null
# Other
I18n = {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment