snapshot of https://github.com/RocketChat/Rocket.Chat.git (develop, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s
Some checks failed
Create issues from TODOs / todos (push) Failing after 3s
Close inactive issues / close-issues (push) Has been cancelled
Deploy GitHub Pages / deploy-preview (push) Has been cancelled
CI / ⚙️ Variables Setup (push) Has been cancelled
CI / ⚙️ Test Guard (push) Has been cancelled
CI / 🚀 Notify external services - draft (push) Has been cancelled
CI / 📦 Build Packages (push) Has been cancelled
CI / 📦 Meteor Build (coverage) (push) Has been cancelled
CI / 📦 Meteor Build (production) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [account-service presence-service omnichannel-transcript-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [authorization-service queue-worker-service ddp-streamer-service], fips) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Build Docker (amd64, [rocketchat], fips) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [account-service presence-service omnichannel-transcript-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [authorization-service queue-worker-service ddp-streamer-service], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], ${{ (github.event_name != 'release' && github.ref != 'refs/heads/develop') && 'coverage' || 'production' }}) (push) Has been cancelled
CI / 🚢 Build Docker (arm64, [rocketchat], coverage) (push) Has been cancelled
CI / 🚢 Publish Docker Images (ghcr.io) (push) Has been cancelled
CI / 📦 Track Image Sizes (push) Has been cancelled
CI / 🔎 Code Check - Action Lint (push) Has been cancelled
CI / 🔎 Code Check (push) Has been cancelled
CI / 🔨 Test Storybook (push) Has been cancelled
CI / 🔨 Test Unit (push) Has been cancelled
CI / 🔨 Test API (CE) (push) Has been cancelled
CI / 🔨 Test API Livechat (CE) (push) Has been cancelled
CI / 🔨 Test UI (CE) (push) Has been cancelled
CI / 🔨 Test API (EE) (push) Has been cancelled
CI / 🔨 Test API Livechat (EE) (push) Has been cancelled
CI / 🔨 Test API Apps (deno-runtime - EE) (push) Has been cancelled
CI / 🔨 Test UI (EE) (push) Has been cancelled
CI / 🔨 Test API (FIPS) (push) Has been cancelled
CI / 🔨 Test API Livechat (FIPS) (push) Has been cancelled
CI / 🔨 Test UI (FIPS) (push) Has been cancelled
CI / 🔨 Test Federation Matrix (push) Has been cancelled
CI / 📊 Report Coverage (push) Has been cancelled
CI / ✅ Tests Done (push) Has been cancelled
CI / 🚀 Publish build assets (push) Has been cancelled
CI / 🚀 Publish Docker Images (DockerHub) (push) Has been cancelled
CI / 🚀 Notify external services (push) Has been cancelled
CI / Update Version Durability (push) Has been cancelled
Release / Release (push) Has been cancelled
Auto-close duplicate issues / auto-close-duplicates (push) Failing after 1s
Code scanning - action / CodeQL-Build (push) Failing after 1s
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import { isFederationAddServerProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('FederationAddServerProps (definition/rest/v1)', () => {
|
||||
describe('isFederationAddServerProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isFederationAddServerProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an FederationAddServerProps', () => {
|
||||
assert.isFalse(isFederationAddServerProps(undefined));
|
||||
assert.isFalse(isFederationAddServerProps(null));
|
||||
assert.isFalse(isFederationAddServerProps(''));
|
||||
assert.isFalse(isFederationAddServerProps(123));
|
||||
assert.isFalse(isFederationAddServerProps({}));
|
||||
assert.isFalse(isFederationAddServerProps([]));
|
||||
assert.isFalse(isFederationAddServerProps(new Date()));
|
||||
assert.isFalse(isFederationAddServerProps(new Error()));
|
||||
});
|
||||
|
||||
it('should return false if serverName is not provided to FederationAddServerProps', () => {
|
||||
assert.isFalse(isFederationAddServerProps({}));
|
||||
});
|
||||
|
||||
it('should accept a serverName with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isFederationAddServerProps({
|
||||
serverName: 'serverName',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to FederationAddServerProps', () => {
|
||||
assert.isFalse(
|
||||
isFederationAddServerProps({
|
||||
serverName: 'serverName',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,49 @@
|
||||
import { isFederationJoinExternalPublicRoomProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('FederationJoinExternalPublicRoomProps (definition/rest/v1)', () => {
|
||||
describe('isFederationJoinExternalPublicRoomProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isFederationJoinExternalPublicRoomProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an FederationJoinExternalPublicRoomProps', () => {
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps(undefined));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps(null));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps(''));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps(123));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps({}));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps([]));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps(new Date()));
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps(new Error()));
|
||||
});
|
||||
|
||||
it('should return false if externalRoomId is not provided to FederationJoinExternalPublicRoomProps', () => {
|
||||
assert.isFalse(isFederationJoinExternalPublicRoomProps({}));
|
||||
});
|
||||
|
||||
it('should return false if externalRoomId was provided in the wrong format FederationJoinExternalPublicRoomProps', () => {
|
||||
assert.isFalse(
|
||||
isFederationJoinExternalPublicRoomProps({
|
||||
externalRoomId: 'wrongFormatId',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should accept a externalRoomId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isFederationJoinExternalPublicRoomProps({
|
||||
externalRoomId: '!externalRoomId:server.com',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to FederationJoinExternalPublicRoomProps', () => {
|
||||
assert.isFalse(
|
||||
isFederationJoinExternalPublicRoomProps({
|
||||
externalRoomId: '!externalRoomId:server.com',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,37 @@
|
||||
import { isFederationSearchPublicRoomsProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('FederationPublicRoomProps (definition/rest/v1)', () => {
|
||||
describe('isFederationSearchPublicRoomsProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isFederationSearchPublicRoomsProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an FederationPublicRoomProps', () => {
|
||||
assert.isFalse(isFederationSearchPublicRoomsProps(''));
|
||||
assert.isFalse(isFederationSearchPublicRoomsProps(123));
|
||||
});
|
||||
|
||||
it('should accept a externalRoomId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isFederationSearchPublicRoomsProps({
|
||||
serverName: 'server',
|
||||
roomName: 'roomName',
|
||||
count: '1',
|
||||
pageToken: 'token',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to FederationPublicRoomProps', () => {
|
||||
assert.isFalse(
|
||||
isFederationSearchPublicRoomsProps({
|
||||
serverName: 'server',
|
||||
roomName: 'roomName',
|
||||
count: '1',
|
||||
pageToken: 'token',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,41 @@
|
||||
import { isFederationRemoveServerProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('FederationRemoveServerProps (definition/rest/v1)', () => {
|
||||
describe('isFederationRemoveServerProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isFederationRemoveServerProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an FederationRemoveServerProps', () => {
|
||||
assert.isFalse(isFederationRemoveServerProps(undefined));
|
||||
assert.isFalse(isFederationRemoveServerProps(null));
|
||||
assert.isFalse(isFederationRemoveServerProps(''));
|
||||
assert.isFalse(isFederationRemoveServerProps(123));
|
||||
assert.isFalse(isFederationRemoveServerProps({}));
|
||||
assert.isFalse(isFederationRemoveServerProps([]));
|
||||
assert.isFalse(isFederationRemoveServerProps(new Date()));
|
||||
assert.isFalse(isFederationRemoveServerProps(new Error()));
|
||||
});
|
||||
|
||||
it('should return false if serverName is not provided to FederationRemoveServerProps', () => {
|
||||
assert.isFalse(isFederationRemoveServerProps({}));
|
||||
});
|
||||
|
||||
it('should accept a serverName with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isFederationRemoveServerProps({
|
||||
serverName: 'serverName',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to FederationRemoveServerProps', () => {
|
||||
assert.isFalse(
|
||||
isFederationRemoveServerProps({
|
||||
serverName: 'serverName',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user