Skip to content

Commit

Permalink
chore: support test for async function file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiMoron committed Dec 11, 2024
1 parent 2628dcf commit b6e83aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/loader/load_file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('test/loader/load_file.test.ts', () => {

it('should load file which returns async function', async () => {
app = createApp('load_file');
const result = (await app.loader.loadFile(getFilepath('load_file/es-module-default-async.yml'))).toString();
const result = (await app.loader.loadFile(getFilepath('load_file/es-module-default-async.js')));
assert.deepEqual(result, { clients: 'Test Config' });
});
});

0 comments on commit b6e83aa

Please sign in to comment.