mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-01 08:19:53 +09:00
[WIP] test
This commit is contained in:
@ -2,9 +2,6 @@
|
||||
* API TESTS
|
||||
*/
|
||||
|
||||
// During the test the env variable is set to test
|
||||
process.env.NODE_ENV = 'test';
|
||||
|
||||
const chai = require('chai');
|
||||
const chaiHttp = require('chai-http');
|
||||
const should = chai.should();
|
||||
@ -35,6 +32,7 @@ describe('API', () => {
|
||||
.end((err, res) => {
|
||||
res.should.have.status(200);
|
||||
res.body.should.be.a('object');
|
||||
res.body.should.have.property('username').eql(account.username);
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user