From 95a9486758509104cf9fb2b70ce2c4ac0d5978db Mon Sep 17 00:00:00 2001
From: Rudolf Copi Eckelberg <rce16@inf.ufpr.br>
Date: Mon, 3 Oct 2016 12:05:51 -0300
Subject: [PATCH] First test for simulation creation - raw

---
 src/test/test.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/test/test.js b/src/test/test.js
index e6bdd1fd..7501e567 100644
--- a/src/test/test.js
+++ b/src/test/test.js
@@ -160,3 +160,20 @@ describe('request cities', () => {
             });
     });
 });
+
+describe('Create new sim', () => {
+    it('should return a new simulation id', (done) => {
+        chai.request(server)
+            .post('/api/v1/simulation')
+            .set('content-type', 'application/x-www-form-urlencoded')
+            .set('x-apicache-bypass', 'true')
+            .send({ name: 'test_entry' })
+            .end((err, res) => {
+                res.should.have.status(200);
+                res.should.be.json;
+                res.body.should.have.property('id');
+                res.body.id.should.be.a('string');
+                done();
+            });
+    });
+});
-- 
GitLab