Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rosekey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
freelynetwork
Rosekey
Commits
50834580
Unverified
Commit
50834580
authored
1 year ago
by
猫ロキP@deflis
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
refactor: forkでデフォルトのノート文字数を変更した場合、E2Eテストが落ちる問題を修正する (#11366)
* forkでデフォルトのノート文字数を変更した場合このテストが落ちる問題を修正する * 文字数についてのコメントを追加しておく
parent
78b502bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/backend/test/e2e/note.ts
+3
-2
3 additions, 2 deletions
packages/backend/test/e2e/note.ts
with
3 additions
and
2 deletions
packages/backend/test/e2e/note.ts
+
3
−
2
View file @
50834580
...
...
@@ -5,6 +5,7 @@ import { Note } from '@/models/entities/Note.js';
import
{
signup
,
post
,
uploadUrl
,
startServer
,
initTestDb
,
api
,
uploadFile
}
from
'
../utils.js
'
;
import
type
{
INestApplicationContext
}
from
'
@nestjs/common
'
;
import
type
*
as
misskey
from
'
misskey-js
'
;
import
{
MAX_NOTE_TEXT_LENGTH
}
from
'
@/const.js
'
;
describe
(
'
Note
'
,
()
=>
{
let
app
:
INestApplicationContext
;
...
...
@@ -164,7 +165,7 @@ describe('Note', () => {
test
(
'
文字数ぎりぎりで怒られない
'
,
async
()
=>
{
const
post
=
{
text
:
'
!
'
.
repeat
(
3000
),
text
:
'
!
'
.
repeat
(
MAX_NOTE_TEXT_LENGTH
),
//
3000
文字
};
const
res
=
await
api
(
'
/notes/create
'
,
post
,
alice
);
assert
.
strictEqual
(
res
.
status
,
200
);
...
...
@@ -172,7 +173,7 @@ describe('Note', () => {
test
(
'
文字数オーバーで怒られる
'
,
async
()
=>
{
const
post
=
{
text
:
'
!
'
.
repeat
(
3001
),
text
:
'
!
'
.
repeat
(
MAX_NOTE_TEXT_LENGTH
+
1
),
//
3001
文字
};
const
res
=
await
api
(
'
/notes/create
'
,
post
,
alice
);
assert
.
strictEqual
(
res
.
status
,
400
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment