Skip to content

Commit

Permalink
fixed lint/ts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fabcotech committed Jul 9, 2024
1 parent 002cad9 commit c955cf0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install dependencies
run: npm i

- name: Build
- name: Test
run: npm run test

lintandcheck:
Expand Down
17 changes: 10 additions & 7 deletions tests/Arithmetic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,23 @@ describe('[Arithmetic]', () => {
expect(initialCounter).toBe(0);

// increase from 0 to 12
const increaseResult = await arithmeticContract.sendIncrease(user1.getSender(), {
increaseBy: 12,
value: toNano('0.05'),
});
const increaseResult = await arithmeticContract.sendIncrease(
(user1 as SandboxContract<TreasuryContract>).getSender(),
{
increaseBy: 12,
value: toNano('0.05'),
},
);
expect(increaseResult.transactions).toHaveTransaction({
from: user1.address,
from: (user1 as SandboxContract<TreasuryContract>).address,
to: arithmeticContract.address,
success: true,
});
expect(await arithmeticContract.getCounter()).toBe(12);
});

it('[Arithmetic] decreases', async () => {
await arithmeticContract.sendDecrease(user1.getSender(), {
await arithmeticContract.sendDecrease((user1 as SandboxContract<TreasuryContract>).getSender(), {
decreaseBy: 1,
value: toNano('0.05'),
});
Expand All @@ -73,7 +76,7 @@ describe('[Arithmetic]', () => {
sendMode: SendMode.PAY_GAS_SEPARATELY,
body: beginCell().storeUint(Opcodes.multiply, 32).storeUint(0, 64).storeUint(2, 32).endCell(),
}); */
await arithmeticContract.sendMultiply(user1.getSender(), {
await arithmeticContract.sendMultiply((user1 as SandboxContract<TreasuryContract>).getSender(), {
multiplyBy: 2,
value: toNano('0.05'),
});
Expand Down
2 changes: 1 addition & 1 deletion tests/Fibonacci.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('[Fibonacci]', () => {
const n2 = await contract.getN2();
expect(n1).toBe(vals[0]);
expect(n2).toBe(vals[1]);
await contract.sendTouch(user1.getSender(), toNano('0.05'));
await contract.sendTouch((user1 as SandboxContract<TreasuryContract>).getSender(), toNano('0.05'));
}
});
});

0 comments on commit c955cf0

Please sign in to comment.