Move /e2e -> /e2e-tests
Этот коммит содержится в:
15
e2e-tests/cypress/tests/support/api/helpers.js
Обычный файл
15
e2e-tests/cypress/tests/support/api/helpers.js
Обычный файл
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
export function buildQueryString(queryParams = {}) {
|
||||
let queryString = '';
|
||||
Object.entries(queryParams).forEach(([k, v], index) => {
|
||||
if (index > 0) {
|
||||
queryString += '&';
|
||||
}
|
||||
|
||||
queryString += `${k}=${encodeURIComponent(v)}`;
|
||||
});
|
||||
|
||||
return queryString;
|
||||
}
|
||||
Ссылка в новой задаче
Block a user