flecks/packages/server/test/runtime-config-runtime.js
2024-02-18 10:32:18 -06:00

13 lines
317 B
JavaScript

import {expect} from 'chai';
import {withServer} from './helpers/with-server';
it('propagates runtime config', withServer(async ({server}) => {
const [{payload: foo}] = await server.actions([
{type: 'config.get', payload: 'server-test.foo'},
{type: 'exit'},
]);
expect(foo)
.to.equal('bar');
}));