today/lib/swedishword.spec.js

16 lines
460 B
JavaScript
Raw Normal View History

2017-10-26 09:46:54 +00:00
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();
});