Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions test/mocha/templates.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,22 @@ should = require 'should'
describe 'Fetching templates', ->

{service} = new Fixture

@beforeAll prepare service.fetchTemplates

it 'should find some templates', eventually (templates) ->
should.exist templates

it 'should return tags for private templates', eventually (templates) ->
templates["private-template-1"]["tags"].length.should.equal 2

it 'should include ManagerLookup', eventually (templates) ->
templates.should.have.property('ManagerLookup').with.property('select')

describe 'Using templates', ->

{service} = new Fixture

@beforeAll prepare service.fetchTemplates

it 'should be just like using queries', eventually (templates) ->
Expand Down