1 | ;
|
2 | let eva = require('../index.js').eva;
|
3 | let chai = require('chai');
|
4 |
|
5 | let assert = chai.assert;
|
6 |
|
7 | describe('EVA', function() {
|
8 | it('should return json with no args ', function(done) {
|
9 | this.timeout(5000);
|
10 | eva()
|
11 | .then(function(data){
|
12 | assert.containSubset(JSON.parse(data)[0], {eva: "1"});
|
13 | done();
|
14 |
|
15 | }).catch(done);
|
16 |
|
17 | });
|
18 | }); |
\ | No newline at end of file |