Skip to content

Commit 752d23a

Browse files
committed
deno test
1 parent 54165c8 commit 752d23a

File tree

6 files changed

+17
-127
lines changed

6 files changed

+17
-127
lines changed

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ image:
22
file: .gitpod.Dockerfile
33
tasks:
44
- init: ''
5-
command: 'echo "Start Project Deno Trading Bot: deno run --allow-net --allow-env --allow-read app.js"'
5+
command: 'echo "Start Project Deno Trading Bot: deno run --allow-net --allow-env --allow-read main.js"'
66

77
vscode:
88
extensions:

.rmAfter/node api bundel.js

Whitespace-only changes.

.rmAfter/tmp.txt

Lines changed: 0 additions & 118 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ API_KEY_BINANCE =
2020
API_SECRET_BINANCE =
2121
INTERVAL_TIME =
2222
```
23-
24-
4 - RUN
23+
## test
24+
- in terminal
25+
```sh
26+
$ deno test --allow-net --allow-env --allow-read
27+
```
28+
## run
2529
- in terminal
2630
```sh
27-
$ deno run --allow-net --allow-env --allow-read app.js
31+
$ deno run --allow-net --allow-env --allow-read main.js
2832
```
2933
- in docker
3034
```sh

test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { assertEquals } from "https://deno.land/std@0.97.0/testing/asserts.ts";
2+
import DenoBot from './mod.js';
3+
4+
const denoBot = new DenoBot();
5+
const ping = await denoBot.ping;
6+
Deno.test("deno tading bot is conect to binance", () => {
7+
assertEquals(ping, true);
8+
});
9+

test.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)