Skip to content

Commit

Permalink
deleted useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Seesti committed Jun 12, 2024
1 parent fa46174 commit 5596d58
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion maventa/MaventaConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ProcessUtils.initEnvFromDefaultFiles();
const isTesting = process.env.IS_TESTING === 'true';

const MaventaConfig = {
baseUrl: isTesting ? 'https://ax-stage.maventa.com' : 'ax.maventa.com',
baseUrl: isTesting ? 'https://ax-stage.maventa.com' : 'https://ax.maventa.com',
clientId: process.env.CLIENT_ID!,
clientSecret: process.env.CLIENT_SECRET!,
scope: process.env.SCOPE!,
Expand Down
3 changes: 0 additions & 3 deletions maventa/MaventaService.system.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { HgNode } from '../../node/HgNode';
describe('MaventaService System Tests', () => {

beforeAll(() => {
// This assumes HgNode has been imported and is appropriate for initializing your HTTP client
HgNode.initialize();
console.log('Running system tests against:', MaventaConfig.baseUrl);
});
Expand All @@ -21,12 +20,10 @@ describe('MaventaService System Tests', () => {
console.log(`Invoice Status: ${invoices[0].status}`);
console.log(`Invoice Amount: ${invoices[0].sum}`);

// Assertions to check if the invoice data is in the expected format
expect(invoices[0]).toHaveProperty('id');
expect(invoices[0]).toHaveProperty('status');
expect(invoices[0].id).toBeDefined();
expect(invoices[0].status).toBeDefined();
// Add more detailed checks as needed
} else {
console.log('No invoices found.');
}
Expand Down
2 changes: 0 additions & 2 deletions maventa/MaventaService.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Type Guard for MaventaInvoice
function isMaventaInvoice(data: any): data is MaventaInvoice {
return data && typeof data === 'object' && 'id' in data && 'status' in data;
}

// Adjusting MaventaService to use type guards
import { HttpService } from '../HttpService';
import { getAccessToken } from './MaventaAuth';
import { MaventaConfig as config } from './MaventaConfig';
Expand Down

0 comments on commit 5596d58

Please sign in to comment.