The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps/tests/server/accessors/EnvironmentRead.test.ts

21 lines
747 B

import * as assert from 'node:assert';
import { describe, it } from 'node:test';
import type { IEnvironmentalVariableRead, IServerSettingRead, ISettingRead } from '@rocket.chat/apps-engine/definition/accessors';
import { EnvironmentRead } from '../../../src/server/accessors';
describe('EnvironmentRead', () => {
it('useEnvironmentRead', () => {
const evr = {} as IEnvironmentalVariableRead;
const ssr = {} as IServerSettingRead;
const sr = {} as ISettingRead;
assert.doesNotThrow(() => new EnvironmentRead(sr, ssr, evr));
const er = new EnvironmentRead(sr, ssr, evr);
assert.ok(er.getSettings() !== undefined);
assert.ok(er.getServerSettings() !== undefined);
assert.ok(er.getEnvironmentVariables() !== undefined);
});
});