mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-07-03 00:29:58 +09:00
[WIP] test
This commit is contained in:
21
test/index.ts
Normal file
21
test/index.ts
Normal file
@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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');
|
||||
});
|
Reference in New Issue
Block a user