-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aptos): onTimeInterval config should under AccountConfig
- Loading branch information
1 parent
be3e50b
commit a5db7f5
Showing
2 changed files
with
43 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { before, describe, test } from 'node:test' | ||
import { expect } from 'chai' | ||
|
||
import { TestProcessorServer } from '../../testing/index.js' | ||
import { AptosGlobalProcessor } from '../aptos-processor.js' | ||
|
||
describe('Test Global Aptos Prcessor', () => { | ||
const service = new TestProcessorServer(async () => { | ||
AptosGlobalProcessor.bind({ address: '*' }).onTimeInterval((resources, ctx) => {}) | ||
}) | ||
|
||
before(async () => { | ||
await service.start({ templateInstances: [] }) | ||
}) | ||
|
||
test('check configuration ', async () => { | ||
const config = await service.getConfig({}) | ||
expect(config.contractConfigs).length(1) | ||
|
||
expect(config.accountConfigs).length(1) | ||
expect(config.accountConfigs[0].moveIntervalConfigs).length(1) | ||
}) | ||
}) |