mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-29 09:27:16 +09:00
22 lines
443 B
TypeScript
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');
|
|
});
|