generator-fatarrow
Version:
20 lines (16 loc) • 418 B
text/coffeescript
describe 'syntax', ->
describe 'syntax directive', ->
beforeEach module 'app'
beforeEach inject (@$compile, $rootScope) ->
it 'starts with the <pre> tag', ->
markup = """
<syntax>
name = 'Cary'
</syntax>
"""
element = @$compile(markup)(@scope)
controller = element.controller()
html = element.html()
expect html.indexOf '<pre'
.toEqual 0