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/EnvironmentWrite.test.ts

20 lines
654 B

import * as assert from 'node:assert';
import { describe, it } from 'node:test';
import type { IServerSettingUpdater, ISettingUpdater } from '@rocket.chat/apps-engine/definition/accessors';
import { EnvironmentWrite } from '../../../src/server/accessors';
describe('EnvironmentWrite', () => {
it('useEnvironmentWrite', () => {
const sr = {} as ISettingUpdater;
const serverSettings = {} as IServerSettingUpdater;
assert.doesNotThrow(() => new EnvironmentWrite(sr, serverSettings));
const er = new EnvironmentWrite(sr, serverSettings);
assert.ok(er.getSettings() !== undefined);
assert.ok(er.getServerSettings() !== undefined);
});
});