1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-24 07:06:22 +09:00

[WIP] test

This commit is contained in:
syuilo 2017-01-17 09:32:28 +09:00
parent 10ca73489f
commit 888f31a9bb

View File

@ -7,7 +7,34 @@ process.env.NODE_ENV = 'test';
const chai = require('chai');
const chaiHttp = require('chai-http');
const server = require('../built/server');
const should = chai.should();
chai.use(chaiHttp);
const server = require('../built/api/server');
describe('API', () => {
describe('posts/create', () => {
it('simple', done => {
const post = {
text: 'Hi'
};
chai.request(server)
.post('/posts/create')
.send(post)
.end((err, res) => {
res.should.have.status(200);
res.body.should.be.a('object');
done();
});
});
it('reply', () => {
});
it('repost', () => {
});
});
});