Fix test
This commit is contained in:
parent
a85cf74e4b
commit
8c9ae6e8cf
1 changed files with 2 additions and 2 deletions
|
@ -289,7 +289,7 @@ describe('API', () => {
|
||||||
it('文字数ぎりぎりで怒られない', () => new Promise(async (done) => {
|
it('文字数ぎりぎりで怒られない', () => new Promise(async (done) => {
|
||||||
const me = await insertSakurako();
|
const me = await insertSakurako();
|
||||||
const post = {
|
const post = {
|
||||||
text: '!'.repeat(500)
|
text: '!'.repeat(1000)
|
||||||
};
|
};
|
||||||
request('/posts/create', post, me).then(res => {
|
request('/posts/create', post, me).then(res => {
|
||||||
res.should.have.status(200);
|
res.should.have.status(200);
|
||||||
|
@ -300,7 +300,7 @@ describe('API', () => {
|
||||||
it('文字数オーバーで怒られる', () => new Promise(async (done) => {
|
it('文字数オーバーで怒られる', () => new Promise(async (done) => {
|
||||||
const me = await insertSakurako();
|
const me = await insertSakurako();
|
||||||
const post = {
|
const post = {
|
||||||
text: '!'.repeat(501)
|
text: '!'.repeat(1001)
|
||||||
};
|
};
|
||||||
request('/posts/create', post, me).then(res => {
|
request('/posts/create', post, me).then(res => {
|
||||||
res.should.have.status(400);
|
res.should.have.status(400);
|
||||||
|
|
Loading…
Reference in a new issue