today/lib/swedishword.spec.js
Martin Donnelly c0d3b15694 init
2017-10-26 10:46:54 +01:00

16 lines
460 B
JavaScript

const swedishWord = require('./swedishword.js');
test('Test swedishword', () => {
return swedishWord.getSwedishWord()
.then((d) => {
console.log('Swedish result: ', JSON.stringify(d));
console.log(d.xml.words.language);
//expect(d.xml.words.language).toEqual('Swedish');
})
.catch((e)=> {
'use strict';
expect(e).toBeNull();
});
done();
});