From 46ee75a000515f1e28783a0686b041b2ea92f022 Mon Sep 17 00:00:00 2001 From: Yo Yehudi Date: Fri, 15 Mar 2019 14:44:18 +0000 Subject: [PATCH] expect tags to be returned by a personal template. --- test/mocha/templates.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/mocha/templates.coffee b/test/mocha/templates.coffee index 72281ab2..2489b711 100644 --- a/test/mocha/templates.coffee +++ b/test/mocha/templates.coffee @@ -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) ->