Skip to content

Commit ca73311

Browse files
committed
Fixes linting error
1 parent aead58b commit ca73311

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/integration-tests/aasRepo.integration.test.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,16 @@ describe('AAS Repository Integration Tests', () => {
4646
expect(response.error).toBeDefined();
4747

4848
//console.log('Error:', response.error);
49-
//console.log(`❌ Error fetching AAS with ID '${nonExistingId}':`, response.error.message || response.error);
50-
51-
let errorMessage = "Unknown error occurred.";
49+
let errorMessage = 'An unknown error occurred';
5250
if (response.error?.field) {
5351
errorMessage = ` Missing required field: ${response.error.field} - ${response.error.message}`;
5452
} else if (response.error?.message) {
5553
errorMessage = `${response.error.message}`;
56-
}
57-
console.log(
58-
`❌ Failed to fetch AAS with AAS ID: ${nonExistingId}, Error: ${errorMessage}` );
59-
60-
}
61-
});
54+
}
55+
56+
expect(errorMessage).toBeDefined();
57+
}
58+
});
6259

6360
test('should fetch all Asset Administration Shells', async () => {
6461
const response = await client.getAllAssetAdministrationShells({

0 commit comments

Comments
 (0)