1 | "use strict";
|
2 | let techport = require('../index.js').techport;
|
3 | let chai = require('chai');
|
4 | let expect = chai.expect;
|
5 | let chaiXml = require('chai-xml');
|
6 | chai.use(chaiXml);
|
7 |
|
8 | describe('Techport', function() {
|
9 | it('should return json with no args ', function(done) {
|
10 | this.timeout(10000);
|
11 | techport()
|
12 | .then(function(data){
|
13 | expect(data).xml.to.be.valid();
|
14 | done();
|
15 |
|
16 | }).catch(done);
|
17 |
|
18 | });
|
19 | it('should return json with id provided ', function(done) {
|
20 | techport(4795)
|
21 | .then(function(data){
|
22 | expect(data).xml.to.be.valid();
|
23 | done();
|
24 |
|
25 | }).catch(done);
|
26 |
|
27 | });
|
28 | }); |
\ | No newline at end of file |