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,40 @@
|
||||
import { isVideoConfCancelProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('VideoConfCancelProps (definition/rest/v1)', () => {
|
||||
describe('isVideoConfCancelProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isVideoConfCancelProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an VideoConfCancelProps', () => {
|
||||
assert.isFalse(isVideoConfCancelProps(undefined));
|
||||
assert.isFalse(isVideoConfCancelProps(null));
|
||||
assert.isFalse(isVideoConfCancelProps(''));
|
||||
assert.isFalse(isVideoConfCancelProps(123));
|
||||
assert.isFalse(isVideoConfCancelProps({}));
|
||||
assert.isFalse(isVideoConfCancelProps([]));
|
||||
assert.isFalse(isVideoConfCancelProps(new Date()));
|
||||
assert.isFalse(isVideoConfCancelProps(new Error()));
|
||||
});
|
||||
it('should return false if callId is not provided to VideoConfCancelProps', () => {
|
||||
assert.isFalse(isVideoConfCancelProps({}));
|
||||
});
|
||||
|
||||
it('should accept a callId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfCancelProps({
|
||||
callId: 'callId',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to VideoConfCancelProps', () => {
|
||||
assert.isFalse(
|
||||
isVideoConfCancelProps({
|
||||
callId: 'callId',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,40 @@
|
||||
import { isVideoConfInfoProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('VideoConfInfoProps (definition/rest/v1)', () => {
|
||||
describe('isVideoConfInfoProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isVideoConfInfoProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an VideoConfInfoProps', () => {
|
||||
assert.isFalse(isVideoConfInfoProps(undefined));
|
||||
assert.isFalse(isVideoConfInfoProps(null));
|
||||
assert.isFalse(isVideoConfInfoProps(''));
|
||||
assert.isFalse(isVideoConfInfoProps(123));
|
||||
assert.isFalse(isVideoConfInfoProps({}));
|
||||
assert.isFalse(isVideoConfInfoProps([]));
|
||||
assert.isFalse(isVideoConfInfoProps(new Date()));
|
||||
assert.isFalse(isVideoConfInfoProps(new Error()));
|
||||
});
|
||||
it('should return false if callId is not provided to VideoConfInfoProps', () => {
|
||||
assert.isFalse(isVideoConfInfoProps({}));
|
||||
});
|
||||
|
||||
it('should accept a callId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfInfoProps({
|
||||
callId: 'callId',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to VideoConfInfoProps', () => {
|
||||
assert.isFalse(
|
||||
isVideoConfInfoProps({
|
||||
callId: 'callId',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,45 @@
|
||||
import { isVideoConfJoinProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('VideoConfJoinProps (definition/rest/v1)', () => {
|
||||
describe('isVideoConfJoinProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isVideoConfJoinProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an VideoConfJoinProps', () => {
|
||||
assert.isFalse(isVideoConfJoinProps(undefined));
|
||||
assert.isFalse(isVideoConfJoinProps(null));
|
||||
assert.isFalse(isVideoConfJoinProps(''));
|
||||
assert.isFalse(isVideoConfJoinProps(123));
|
||||
assert.isFalse(isVideoConfJoinProps({}));
|
||||
assert.isFalse(isVideoConfJoinProps([]));
|
||||
assert.isFalse(isVideoConfJoinProps(new Date()));
|
||||
assert.isFalse(isVideoConfJoinProps(new Error()));
|
||||
});
|
||||
it('should return false if callId is not provided to VideoConfJoinProps', () => {
|
||||
assert.isFalse(isVideoConfJoinProps({}));
|
||||
});
|
||||
|
||||
it('should accept a callId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfJoinProps({
|
||||
callId: 'callId',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when provided with an invalid state', () => {
|
||||
assert.isFalse(isVideoConfJoinProps({ callId: 'callId', state: 123 }));
|
||||
assert.isFalse(isVideoConfJoinProps({ callId: 'callId', state: [] }));
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to VideoConfJoinProps', () => {
|
||||
assert.isFalse(
|
||||
isVideoConfJoinProps({
|
||||
callId: 'callId',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,50 @@
|
||||
import { isVideoConfListProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('VideoConfListProps (definition/rest/v1)', () => {
|
||||
describe('isVideoConfListProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isVideoConfListProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an VideoConfListProps', () => {
|
||||
assert.isFalse(isVideoConfListProps(undefined));
|
||||
assert.isFalse(isVideoConfListProps(null));
|
||||
assert.isFalse(isVideoConfListProps(''));
|
||||
assert.isFalse(isVideoConfListProps(123));
|
||||
assert.isFalse(isVideoConfListProps({}));
|
||||
assert.isFalse(isVideoConfListProps([]));
|
||||
assert.isFalse(isVideoConfListProps(new Date()));
|
||||
assert.isFalse(isVideoConfListProps(new Error()));
|
||||
});
|
||||
it('should return false if roomId is not provided to VideoConfListProps', () => {
|
||||
assert.isFalse(isVideoConfListProps({}));
|
||||
});
|
||||
|
||||
it('should accept a roomId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfListProps({
|
||||
roomId: 'roomId',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should accept the count and offset parameters', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfListProps({
|
||||
roomId: 'roomId',
|
||||
offset: 50,
|
||||
count: 25,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to VideoConfListProps', () => {
|
||||
assert.isFalse(
|
||||
isVideoConfListProps({
|
||||
roomId: 'roomId',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
import { isVideoConfStartProps } from '@rocket.chat/rest-typings';
|
||||
import { assert } from 'chai';
|
||||
|
||||
describe('VideoConfStartProps (definition/rest/v1)', () => {
|
||||
describe('isVideoConfStartProps', () => {
|
||||
it('should be a function', () => {
|
||||
assert.isFunction(isVideoConfStartProps);
|
||||
});
|
||||
it('should return false when provided anything that is not an VideoConfStartProps', () => {
|
||||
assert.isFalse(isVideoConfStartProps(undefined));
|
||||
assert.isFalse(isVideoConfStartProps(null));
|
||||
assert.isFalse(isVideoConfStartProps(''));
|
||||
assert.isFalse(isVideoConfStartProps(123));
|
||||
assert.isFalse(isVideoConfStartProps({}));
|
||||
assert.isFalse(isVideoConfStartProps([]));
|
||||
assert.isFalse(isVideoConfStartProps(new Date()));
|
||||
assert.isFalse(isVideoConfStartProps(new Error()));
|
||||
});
|
||||
it('should return false if roomId is not provided to VideoConfStartProps', () => {
|
||||
assert.isFalse(isVideoConfStartProps({}));
|
||||
});
|
||||
|
||||
it('should accept a roomId with nothing else', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfStartProps({
|
||||
roomId: 'roomId',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should accept the allowRinging parameter', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfStartProps({
|
||||
roomId: 'roomId',
|
||||
allowRinging: true,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should accept a roomId with a title', () => {
|
||||
assert.isTrue(
|
||||
isVideoConfStartProps({
|
||||
roomId: 'roomId',
|
||||
title: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it('should return false when extra parameters are provided to VideoConfStartProps', () => {
|
||||
assert.isFalse(
|
||||
isVideoConfStartProps({
|
||||
roomId: 'roomId',
|
||||
extra: 'extra',
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user