Skip to content

Commit

Permalink
fix: add example test
Browse files Browse the repository at this point in the history
add example test
  • Loading branch information
fabiorigam committed Oct 30, 2023
1 parent 54df32f commit aaa61da
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/network/tests/driver/first_test.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { describe, expect, test } from '@jest/globals';
// import { SimpleNet } from '../../src';
// import { Driver } from '../../src/driver/driver';
import { SimpleNet } from '../../src';
import { Driver } from '../../src/driver/driver';

describe('Driver', () => {
test('test', () => {
// const net = new SimpleNet('https://testnet.vechain.org');
// const driver = await Driver.connect(net);
expect('a').toBe('a');
// this is just an example, not a real test
test('test', async () => {
const net = new SimpleNet('https://testnet.vechain.org');
const driver = await Driver.connect(net);
expect(driver).toBe('a'); // should give error
});
});

0 comments on commit aaa61da

Please sign in to comment.