-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40cb25f
commit 8de0ee9
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"preset": "ts-jest", | ||
"testEnvironment": "node" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Tests | ||
|
||
Ces tests sont exécutables avec la commande `npm run test`. Ces tests utilisent `jest`. | ||
|
||
Ils utilisent un serveur [ed-test-api](https://github.com/camarm-dev/ed-test-api) pour fonctionner. | ||
|
||
**TODOs:** | ||
- Implémenter ed-test-api | ||
- Tester toutes les fonctionnalités |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { EDCore } from "../index"; | ||
import {Session} from "../src/session"; | ||
|
||
describe('index.ts', () => { | ||
test('should export EDCore class, which is a Session instance', () => { | ||
expect(typeof EDCore).toBe(typeof Session) | ||
}) | ||
}) |