-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve linting issues + various biz logic issues
All 581 regression tests are now passing!
- Loading branch information
Showing
7 changed files
with
114 additions
and
119 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
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
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,29 @@ | ||
'use strict'; | ||
|
||
//** import repositories */ | ||
const attackObjectsRepository = require('../repository/attack-objects-repository'); | ||
const identitiesRepository = require('../repository/identities-repository'); | ||
const relationshipsRepository = require('../repository/relationships-repository'); | ||
|
||
//** imports services */ | ||
const AttackObjectsService = require('./attack-objects-service'); | ||
const { IdentitiesService } = require('./identities-service'); | ||
const RelationshipsService = require('./relationships-service'); | ||
|
||
//** import types */ | ||
const { Identity: IdentityType, Relationship: RelationshipType } = require('../lib/types'); | ||
|
||
// ** initialize services */ | ||
const identitiesService = new IdentitiesService(IdentityType, identitiesRepository); | ||
const relationshipsService = new RelationshipsService(RelationshipType, relationshipsRepository); | ||
const attackObjectsService = new AttackObjectsService( | ||
attackObjectsRepository, | ||
identitiesService, | ||
relationshipsService, | ||
); | ||
|
||
module.exports = { | ||
identitiesService, | ||
relationshipsService, | ||
attackObjectsService, | ||
}; |
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