From 56634bdb49873550fa3e4f2c9b5e6d7bc25022f7 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 2 Nov 2017 12:16:11 +0000 Subject: [PATCH] Add assertions for tag properties --- .../UnitTests/coffee/Project/ProjectControllerTests.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/web/test/UnitTests/coffee/Project/ProjectControllerTests.coffee b/services/web/test/UnitTests/coffee/Project/ProjectControllerTests.coffee index 2392c4476b..b53d36cd6f 100644 --- a/services/web/test/UnitTests/coffee/Project/ProjectControllerTests.coffee +++ b/services/web/test/UnitTests/coffee/Project/ProjectControllerTests.coffee @@ -327,6 +327,9 @@ describe "ProjectController", -> it 'should include V1 tags', (done) -> @res.render = (pageName, opts) => opts.tags.length.should.equal (@tags.length + @V1Response.tags.length) + opts.tags.forEach (t) -> + expect(t).to.have.property 'name' + expect(t).to.have.property 'project_ids' done() @ProjectController.projectListPage @req, @res