Skip to content

Commit 32a676b

Browse files
author
Victor Wiebe
committed
fix: createEtherDividendDistribution refactor naming and object
1 parent ba38b21 commit 32a676b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/procedures/__tests__/CreateEtherDividendDistribution.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,12 @@ describe('CreateEtherDividendDistribution', () => {
143143

144144
test('should return the newly created eth dividend distribution', async () => {
145145
const dividendObject = {
146-
permissions: {
147-
securityTokenId: () => 'Id',
148-
index: () => 1,
149-
},
146+
securityTokenId: () => 'Id',
147+
index: () => 1,
150148
};
151149

152150
const fetchStub = dividendDistributionFactoryMock.mock('fetch', dividendObject);
153-
const findEvents = ImportMock.mockFunction(utilsModule, 'findEvents', [
151+
const findEventsStub = ImportMock.mockFunction(utilsModule, 'findEvents', [
154152
{
155153
args: {
156154
_dividendIndex: new BigNumber(1),
@@ -163,7 +161,7 @@ describe('CreateEtherDividendDistribution', () => {
163161
await resolver.run({} as TransactionReceiptWithDecodedLogs);
164162
await expect(resolver.result).toEqual(dividendObject);
165163
expect(fetchStub.callCount).toBe(1);
166-
expect(findEvents.callCount).toBe(1);
164+
expect(findEventsStub.callCount).toBe(1);
167165
});
168166

169167
test('should throw if eth dividends manager has not been enabled', async () => {

0 commit comments

Comments
 (0)