Skip to content
Snippets Groups Projects
Commit 95a94867 authored by Rudolf Copi Eckelberg's avatar Rudolf Copi Eckelberg
Browse files

First test for simulation creation - raw

parent 603944fa
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!25Auth
Pipeline #
...@@ -160,3 +160,20 @@ describe('request cities', () => { ...@@ -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();
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment