summaryrefslogtreecommitdiff
path: root/spec/frontend/notes/stores
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-28 09:09:38 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-28 09:09:38 +0000
commitd81f7fc0b3c75a7c95528f21d55be2dd26521f2e (patch)
tree28714988991b6b1036d935ad4fa4594e223b707b /spec/frontend/notes/stores
parent8b7a679616e450608f5d97a09e5287c939477aab (diff)
downloadgitlab-ce-d81f7fc0b3c75a7c95528f21d55be2dd26521f2e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/notes/stores')
-rw-r--r--spec/frontend/notes/stores/actions_spec.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/frontend/notes/stores/actions_spec.js b/spec/frontend/notes/stores/actions_spec.js
index 38f29ac2559..bf69d24bcb9 100644
--- a/spec/frontend/notes/stores/actions_spec.js
+++ b/spec/frontend/notes/stores/actions_spec.js
@@ -1351,7 +1351,7 @@ describe('Actions Notes Store', () => {
return testAction(
actions.fetchDiscussions,
{},
- null,
+ { noteableType: notesConstants.MERGE_REQUEST_NOTEABLE_TYPE },
[
{ type: mutationTypes.ADD_OR_UPDATE_DISCUSSIONS, payload: { discussion } },
{ type: mutationTypes.SET_FETCHING_DISCUSSIONS, payload: false },
@@ -1360,13 +1360,11 @@ describe('Actions Notes Store', () => {
);
});
- it('dispatches `fetchDiscussionsBatch` action if `paginatedIssueDiscussions` feature flag is enabled', () => {
- window.gon = { features: { paginatedIssueDiscussions: true } };
-
+ it('dispatches `fetchDiscussionsBatch` action if noteable is an Issue', () => {
return testAction(
actions.fetchDiscussions,
{ path: 'test-path', filter: 'test-filter', persistFilter: 'test-persist-filter' },
- null,
+ { noteableType: notesConstants.ISSUE_NOTEABLE_TYPE },
[],
[
{
@@ -1389,7 +1387,7 @@ describe('Actions Notes Store', () => {
return testAction(
actions.fetchDiscussions,
{ path: 'test-path', filter: 'test-filter', persistFilter: 'test-persist-filter' },
- null,
+ { noteableType: notesConstants.MERGE_REQUEST_NOTEABLE_TYPE },
[],
[
{