Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/store
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-09-21 12:39:13 +0300
committerJoas Schilling <coding@schilljs.com>2021-09-21 12:39:13 +0300
commitcff4b0aac0fd07fac810275558eb54fd8151c234 (patch)
treea8a1696796004dee06fbdb9e9c1a17948b4fd432 /src/store
parent6a00e05685908f35e924b80967c706e084ef07d8 (diff)
Fix remaining linting issues
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/store')
-rw-r--r--src/store/callViewStore.spec.js4
-rw-r--r--src/store/messagesStore.spec.js16
-rw-r--r--src/store/participantsStore.spec.js12
3 files changed, 16 insertions, 16 deletions
diff --git a/src/store/callViewStore.spec.js b/src/store/callViewStore.spec.js
index c787e865d..3158c9f01 100644
--- a/src/store/callViewStore.spec.js
+++ b/src/store/callViewStore.spec.js
@@ -115,8 +115,8 @@ describe('callViewStore', () => {
})
/**
- * @param conversationType
- * @param state
+ * @param {number} conversationType The type of the conversation
+ * @param {boolean} state Whether or not the grid is shown
*/
function testDefaultGridState(conversationType, state) {
localStorage.getItem.mockReturnValueOnce(null)
diff --git a/src/store/messagesStore.spec.js b/src/store/messagesStore.spec.js
index 8d416fb30..2db08b0c9 100644
--- a/src/store/messagesStore.spec.js
+++ b/src/store/messagesStore.spec.js
@@ -1062,8 +1062,8 @@ describe('messagesStore', () => {
})
/**
- * @param messages
- * @param expectedPayload
+ * @param {Array} messages List of messages the API call returned
+ * @param {object} expectedPayload The parameters that should be updated when receiving the messages
*/
async function testUpdateMessageCounters(messages, expectedPayload) {
const response = {
@@ -1203,8 +1203,8 @@ describe('messagesStore', () => {
})
/**
- * @param messageParameters
- * @param expectedValue
+ * @param {object} messageParameters The rich-object-string parameters of the message
+ * @param {boolean} expectedValue New state of the mention flag
*/
async function testMentionFlag(messageParameters, expectedValue) {
const messages = [{
@@ -1486,8 +1486,8 @@ describe('messagesStore', () => {
})
/**
- * @param statusCode
- * @param reasonCode
+ * @param {number} statusCode Return code of the API request
+ * @param {string} reasonCode The reason for the return code
*/
async function testMarkMessageErrors(statusCode, reasonCode) {
const temporaryMessage = {
@@ -1597,8 +1597,8 @@ describe('messagesStore', () => {
describe('hasMoreMessagesToLoad', () => {
/**
- * @param lastKnownMessageId
- * @param lastConversationMessageId
+ * @param {number} lastKnownMessageId The last known/loaded message id
+ * @param {number} lastConversationMessageId The last message id of the conversation
*/
function setupWithValues(lastKnownMessageId, lastConversationMessageId) {
store.dispatch('setLastKnownMessageId', { token: TOKEN, id: 123 })
diff --git a/src/store/participantsStore.spec.js b/src/store/participantsStore.spec.js
index 67463ed34..9a7fab4b5 100644
--- a/src/store/participantsStore.spec.js
+++ b/src/store/participantsStore.spec.js
@@ -210,8 +210,8 @@ describe('participantsStore', () => {
})
/**
- * @param participantType
- * @param expectedParticipantType
+ * @param {number} participantType Participant type before the action
+ * @param {number} expectedParticipantType Expected participant type after the action
*/
async function testPromoteModerator(participantType, expectedParticipantType) {
promoteToModerator.mockResolvedValue()
@@ -257,8 +257,8 @@ describe('participantsStore', () => {
})
/**
- * @param participantType
- * @param expectedParticipantType
+ * @param {number} participantType Participant type before the action
+ * @param {number} expectedParticipantType Expected participant type after the action
*/
async function testDemoteModerator(participantType, expectedParticipantType) {
promoteToModerator.mockResolvedValue()
@@ -569,8 +569,8 @@ describe('participantsStore', () => {
})
/**
- * @param lastPingAge
- * @param inCall
+ * @param {number} lastPingAge The unix timestamp of the last ping of the participant
+ * @param {number} inCall The in_call flag of the participant
*/
function prepareTestJoinWithMaxPingAge(lastPingAge, inCall) {
const mockDate = new Date('2020-01-01 20:00:00')