Skip to content

Commit cf36a49

Browse files
committed
refactor: update test cases to remove exclusive test markers and skip a specific test in Orap
1 parent 09a453d commit cf36a49

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

packages/orap/src/flow/event.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe('EventFlow', () => {
6565
expect(eventFlow.params.address).toEqual(['0x1234567890123456789012345678901234567890'])
6666
})
6767

68-
it.only('should set the array address', () => {
68+
it('should set the array address', () => {
6969
const eventFlow = new EventFlow(orapFlow, { address: [USDT_ADDRESS], abi: ERC20_ABI, eventName: 'Transfer' })
7070
eventFlow.address(1, '0x1234567890123456789012345678901234567890')
7171
expect(eventFlow.params.address).toContainEqual('0x1234567890123456789012345678901234567890')

packages/orap/src/signal/event.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ describe('EventSignal', () => {
105105
expect(rekuProviderManager.addListener).toHaveBeenCalledWith(params.address, params.eventName, eventSignal.subscribeCallback)
106106
})
107107

108-
it('should connect the contract to the provider if provider is not an instance of RekuProviderManager', () => {
109-
eventSignal.startEventListener(provider)
110-
expect(eventSignal.contractMap.get(params.address as ContractAddress)?.connect).toHaveBeenCalledWith(provider)
111-
})
112-
113108
it('should call the on method of the listener with the eventName and subscribeCallback', () => {
114109
const listener = {
115110
on: vi.fn(),

packages/orap/tests/orap.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('Orap', () => {
3737
}, {
3838
timeout: 100000000,
3939
})
40-
it('should run Declarative Demo without errors', async () => {
40+
it.skip('should run Declarative Demo without errors', async () => {
4141
const consoleSpy = vi.spyOn(console, 'log')
4242

4343
const storeConfig = { port: parseInt(process.env.REDIS_PORT!), host: process.env.REDIS_HOST }

packages/reku/tests/basechecker.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ describe('BaseCrossChecker', () => {
410410
})
411411
})
412412

413-
it.only('should handle retryOptions', async () => {
413+
it('should handle retryOptions', async () => {
414414
mockProvider.provider.getLogs.mockRejectedValue(Error('provider not ready'))
415415

416416
const options: CrossCheckRangeParam = {

0 commit comments

Comments
 (0)