@@ -5,13 +5,13 @@ const path = require('path');
55const { tmpdir } = require ( 'os' ) ;
66const { mkdtempSync, mkdirSync, writeFileSync, rmSync, existsSync } = require ( 'fs' ) ;
77
8- describe ( 'ComponentLoader Status Integration' , function ( ) {
8+ describe ( 'ComponentLoader Status Integration' , ( ) => {
99 let componentStatusRegistry ;
1010 let tempDir ;
1111 let componentLoader ;
1212 let lifecycle ;
1313
14- before ( function ( ) {
14+ before ( ( ) => {
1515 // Create a temporary directory for test components
1616 tempDir = mkdtempSync ( path . join ( tmpdir ( ) , 'harper-test-components-' ) ) ;
1717
@@ -58,7 +58,7 @@ describe('ComponentLoader Status Integration', function () {
5858 componentLoader = require ( '#harper/components/componentLoader' ) ;
5959 } ) ;
6060
61- after ( function ( ) {
61+ after ( ( ) => {
6262 // Restore all spies
6363 sinon . restore ( ) ;
6464
@@ -71,7 +71,7 @@ describe('ComponentLoader Status Integration', function () {
7171 componentStatusRegistry . reset ( ) ;
7272 } ) ;
7373
74- beforeEach ( function ( ) {
74+ beforeEach ( ( ) => {
7575 // Reset spy history before each test
7676 lifecycle . loading . resetHistory ( ) ;
7777 lifecycle . loaded . resetHistory ( ) ;
@@ -86,8 +86,8 @@ describe('ComponentLoader Status Integration', function () {
8686 componentStatusRegistry . reset ( ) ;
8787 } ) ;
8888
89- describe ( 'Basic component status tracking' , function ( ) {
90- it ( 'should initialize loading status for non-root components' , async function ( ) {
89+ describe ( 'Basic component status tracking' , ( ) => {
90+ it ( 'should initialize loading status for non-root components' , async ( ) => {
9191 // Create a test component directory
9292 const componentDirName = 'test-component' ;
9393 const componentDir = path . join ( tempDir , componentDirName ) ;
@@ -121,7 +121,7 @@ describe('ComponentLoader Status Integration', function () {
121121 ) ;
122122 } ) ;
123123
124- it ( 'should track loading for components with trusted loaders' , async function ( ) {
124+ it ( 'should track loading for components with trusted loaders' , async ( ) => {
125125 // Create a component using a trusted loader
126126 const componentDirName = 'trusted-component' ;
127127 const componentDir = path . join ( tempDir , componentDirName ) ;
@@ -154,7 +154,7 @@ describe('ComponentLoader Status Integration', function () {
154154 assert . match ( loadedCalls [ 0 ] . args [ 1 ] , / l o a d e d s u c c e s s f u l l y / ) ;
155155 } ) ;
156156
157- it ( 'should mark component as failed when it loads no functionality' , async function ( ) {
157+ it ( 'should mark component as failed when it loads no functionality' , async ( ) => {
158158 // Create a component directory without config
159159 // This will use DEFAULT_CONFIG but won't actually load anything
160160 const componentDirName = 'empty-component' ;
@@ -188,8 +188,8 @@ describe('ComponentLoader Status Integration', function () {
188188 } ) ;
189189 } ) ;
190190
191- describe ( 'Component status verification' , function ( ) {
192- it ( 'should properly set status in registry after successful load' , async function ( ) {
191+ describe ( 'Component status verification' , ( ) => {
192+ it ( 'should properly set status in registry after successful load' , async ( ) => {
193193 // Create a component
194194 const componentDirName = 'verify-status' ;
195195 const componentDir = path . join ( tempDir , componentDirName ) ;
@@ -213,7 +213,7 @@ describe('ComponentLoader Status Integration', function () {
213213 assert . ok ( status . message , 'Should have a status message' ) ;
214214 } ) ;
215215
216- it ( 'should handle component loading errors gracefully' , async function ( ) {
216+ it ( 'should handle component loading errors gracefully' , async ( ) => {
217217 // Stub the dataLoader module's handleApplication method to throw an error
218218 const dataLoaderModule = require ( '#harper/resources/dataLoader' ) ;
219219 const originalhandleApplication = dataLoaderModule . handleApplication ;
0 commit comments