Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fospring committed Sep 11, 2023
1 parent 5a02a55 commit a9e510d
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 16 deletions.
13 changes: 8 additions & 5 deletions packages/js/__tests__/jsonrpc.ava.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import test from "ava";
import {JsonRpcProvider} from "..";
import process from 'process';

test("check url", async (t) => {
const provider = JsonRpcProvider.fromNetwork("mainnet");
import test from 'ava';

import {JsonRpcProvider} from '..';

test('check url', t => {
const provider = JsonRpcProvider.fromNetwork('mainnet');
if (process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) {
console.log("use rpc", process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL);
console.log('use rpc', process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL);
t.is(provider.connection.url, process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL.toString());
}
});
2 changes: 1 addition & 1 deletion packages/js/dist/jsonrpc.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions packages/js/dist/jsonrpc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/js/dist/jsonrpc.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/js/dist/transaction.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion packages/js/dist/transaction.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a9e510d

Please sign in to comment.