summaly/test/index.ts
2017-02-08 14:26:19 +09:00

22 lines
443 B
TypeScript

/**
* Tests!
*/
import http from 'http';
import chai from 'chai';
import summaly from '../';
Error.stackTraceLimit = Infinity;
// During the test the env variable is set to test
process.env.NODE_ENV = 'test';
// Display detail of unhandled promise rejection
process.on('unhandledRejection', console.dir);
const should = chai.should();
it('well-defined meta site', async () => {
should.equal(await summaly('localhost:0'), 'hoge');
});