Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Sep 12, 2023
1 parent e4aee7b commit cf38ba3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion standalone/standalone/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,23 @@ describe('test/index.test.ts', () => {
describe('runner with runtimeConfig', () => {
it('should work', async () => {
const msg = await main(path.join(__dirname, './fixtures/runtime-config'));
assert.deepEqual(msg, { baseDir: path.join(__dirname, './fixtures/runtime-config') });
assert.deepEqual(msg, {
baseDir: path.join(__dirname, './fixtures/runtime-config'),
env: undefined,
name: undefined,
});
});

it('should auto set name and env', async () => {
const msg = await main(path.join(__dirname, './fixtures/runtime-config'), {
name: 'foo',
env: 'unittest',
});
assert.deepEqual(msg, {
baseDir: path.join(__dirname, './fixtures/runtime-config'),
name: 'foo',
env: 'unittest',
});
});
});

Expand Down

0 comments on commit cf38ba3

Please sign in to comment.