UNPKG

426 BJavaScriptView Raw
1"use strict";
2let eva = require('../index.js').eva;
3let chai = require('chai');
4
5let assert = chai.assert;
6
7describe('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