-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b34200
commit acce042
Showing
56 changed files
with
766 additions
and
937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
import { describe, expect, it } from 'vitest'; | ||
|
||
import { APPLICATIONS } from './fixtures'; | ||
|
||
const application = APPLICATIONS.GENERAL; | ||
|
||
describe('models/Application', () => | ||
{ | ||
// TODO: Add classes tests | ||
|
||
describe('.getProcedureNames()', () => | ||
{ | ||
it('should contain all public and protected procedure names', () => | ||
{ | ||
const procedureNames = application.getProcedureNames(); | ||
|
||
expect(procedureNames).toHaveLength(2); | ||
expect(procedureNames).toContain('protected'); | ||
expect(procedureNames).toContain('public'); | ||
}); | ||
}); | ||
|
||
describe('.hasProcedure(name)', () => | ||
{ | ||
it('should have public procedures', () => | ||
{ | ||
const hasProtectedProcedure = application.hasProcedure('protected'); | ||
const hasPublicProcedure = application.hasProcedure('public'); | ||
|
||
expect(hasProtectedProcedure).toBeTruthy(); | ||
expect(hasPublicProcedure).toBeTruthy(); | ||
}); | ||
}); | ||
}); |
13 changes: 13 additions & 0 deletions
13
packages/execution/test/models/fixtures/applications.fixture.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
import Application from '../../../src/models/Application'; | ||
|
||
import { SEGMENTS } from './segments.fixture'; | ||
|
||
const generalApplication = new Application(); | ||
generalApplication.addSegment(SEGMENTS.GENERAL); | ||
// TODO: Add more segments | ||
|
||
export const APPLICATIONS = | ||
{ | ||
GENERAL: generalApplication | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ges/runtime/test/services/Runtime.spec.ts → packages/runtime/test/Runtime.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
packages/runtime/test/_fixtures/interfaces/FileManager.fixture.ts
This file was deleted.
Oops, something went wrong.
70 changes: 0 additions & 70 deletions
70
packages/runtime/test/_fixtures/interfaces/HealthCheck.fixture.ts
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
packages/runtime/test/_fixtures/interfaces/Middleware.fixture.ts
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
packages/runtime/test/_fixtures/services/LocalGateway.fixture.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.