From b044052af706bf3156f225207f0089a20d55b0c8 Mon Sep 17 00:00:00 2001 From: Fernando Erd <fce15@inf.ufpr.br> Date: Tue, 14 Nov 2017 11:24:35 -0200 Subject: [PATCH] fix tests --- src/test/enrollment.js | 2 +- src/test/infrastructure.js | 2 +- src/test/teacher.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/enrollment.js b/src/test/enrollment.js index 1ca9fac5..997e5f70 100644 --- a/src/test/enrollment.js +++ b/src/test/enrollment.js @@ -59,7 +59,7 @@ describe('request enrollments', () => { res.should.be.json; res.body.should.have.property('result'); res.body.result.should.be.a('array'); - res.body.result[0].should.have.property('years'); + res.body.result[0].should.have.property('year'); done(); }); }); diff --git a/src/test/infrastructure.js b/src/test/infrastructure.js index 43b4a7c9..38dee0e2 100644 --- a/src/test/infrastructure.js +++ b/src/test/infrastructure.js @@ -45,7 +45,7 @@ describe('request idhme', () => { res.should.be.json; res.body.should.have.property('result'); res.body.result.should.be.a('array'); - res.body.result[0].should.have.property('years'); + res.body.result[0].should.have.property('year'); done(); }); }); diff --git a/src/test/teacher.js b/src/test/teacher.js index 23d9eca6..65c9d28d 100644 --- a/src/test/teacher.js +++ b/src/test/teacher.js @@ -73,7 +73,7 @@ describe('request teachers', () => { res.should.be.json; res.body.should.have.property('result'); res.body.result.should.be.a('array'); - res.body.result[0].should.have.property('years'); + res.body.result[0].should.have.property('year'); done(); }); }); -- GitLab