UNPKG

708 BJavaScriptView Raw
1"use strict";
2let trek = require('../index.js').trek;
3let chai = require('chai');
4let expect = chai.expect;
5let chaiXml = require('chai-xml');
6chai.use(chaiXml);
7
8describe('Sounds', function() {
9 it('should return json with no args ', function(done) {
10 trek.mars("curiosity_ctx_mosaic")
11 .then(function(data){
12 expect(data).xml.to.be.valid();
13 done();
14
15 }).catch(done);
16
17 });
18 it('should return json with no args ', function(done) {
19 trek.vesta("global_LAMO")
20 .then(function(data){
21 expect(data).xml.to.be.valid();
22 done();
23
24 }).catch(done);
25
26 });
27});
\No newline at end of file