Skip to content

Commit

Permalink
Update Engine API test to include all controllers in engine context
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Jul 29, 2024
1 parent abc26a2 commit dee3bb1
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions app/core/Engine.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,33 @@ jest.unmock('./Engine');
describe('Engine', () => {
it('should expose an API', () => {
const engine = Engine.init({});
expect(engine.context).toHaveProperty('AccountsController');
expect(engine.context).toHaveProperty('AccountTrackerController');
expect(engine.context).toHaveProperty('AddressBookController');
expect(engine.context).toHaveProperty('ApprovalController');
expect(engine.context).toHaveProperty('AssetsContractController');
expect(engine.context).toHaveProperty('TokenListController');
expect(engine.context).toHaveProperty('TokenDetectionController');
expect(engine.context).toHaveProperty('NftDetectionController');
expect(engine.context).toHaveProperty('NftController');
expect(engine.context).toHaveProperty('CurrencyRateController');
expect(engine.context).toHaveProperty('GasFeeController');
expect(engine.context).toHaveProperty('KeyringController');
expect(engine.context).toHaveProperty('LoggingController');
expect(engine.context).toHaveProperty('NetworkController');
expect(engine.context).toHaveProperty('NftController');
expect(engine.context).toHaveProperty('NftDetectionController');
expect(engine.context).toHaveProperty('PermissionController');
expect(engine.context).toHaveProperty('PhishingController');
expect(engine.context).toHaveProperty('PreferencesController');
expect(engine.context).toHaveProperty('SignatureController');
expect(engine.context).toHaveProperty('PPOMController');
expect(engine.context).toHaveProperty('TokenBalancesController');
expect(engine.context).toHaveProperty('TokenListController');
expect(engine.context).toHaveProperty('TokenDetectionController');
expect(engine.context).toHaveProperty('TokenRatesController');
expect(engine.context).toHaveProperty('TokensController');
expect(engine.context).toHaveProperty('LoggingController');
expect(engine.context).toHaveProperty('TransactionController');
expect(engine.context).toHaveProperty('SmartTransactionsController');
expect(engine.context).toHaveProperty('SignatureController');
expect(engine.context).toHaveProperty('SnapController');
expect(engine.context).toHaveProperty('SubjectMetadataController');
expect(engine.context).toHaveProperty('SwapsController');
expect(engine.context).toHaveProperty('AuthenticationController');
expect(engine.context).toHaveProperty('UserStorageController');
expect(engine.context).toHaveProperty('NotificationServicesController');
Expand Down

0 comments on commit dee3bb1

Please sign in to comment.