From b6e83aa6e7274c6e53258e2d0e5f2c50edf8ee1e Mon Sep 17 00:00:00 2001
From: Boyuan Gao <anti2moron@gmail.com>
Date: Wed, 11 Dec 2024 14:43:04 +0800
Subject: [PATCH] chore: support test for async function file loading

---
 test/loader/load_file.test.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/loader/load_file.test.ts b/test/loader/load_file.test.ts
index ffa4de8f..03bc2102 100644
--- a/test/loader/load_file.test.ts
+++ b/test/loader/load_file.test.ts
@@ -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' });
   });
 });