Skip to content

Commit

Permalink
fix: test structure
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Oct 22, 2021
1 parent 21a83f2 commit b686f04
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ describe('starknet endpoints', () => {
test('getTransaction()', () => {
return expect(starknet.getTransaction(286136)).resolves.not.toThrow();
});
test('addTransaction() deploy', async () => {
});

describe('addTransaction()', () => {
test('type: "DEPLOY"', async () => {
const inputContract = compiledArgentAccount as unknown as CompiledContract;

const contractDefinition = {
Expand All @@ -50,6 +53,8 @@ describe('starknet endpoints', () => {
// eslint-disable-next-line no-console
console.log('txId:', response.tx_id);
});
xtest('type: "INVOKE_FUNCTION"', () => {});

test('deployContract()', async () => {
const inputContract = compiledArgentAccount as unknown as CompiledContract;

Expand All @@ -65,8 +70,4 @@ describe('starknet endpoints', () => {
console.log('txId:', response.tx_id);
});
});

describe('gateway endpoints', () => {
xtest('addTransaction()', () => {});
});
});

0 comments on commit b686f04

Please sign in to comment.