Skip to content

Commit

Permalink
added jest tests, new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
CookieCookson committed Apr 14, 2020
1 parent e8def30 commit c7d3053
Show file tree
Hide file tree
Showing 21 changed files with 5,764 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LRS_ENDPOINT=https://cloud.scorm.com/lrs/xxxxxxxxxx/sandbox/
LRS_USERNAME=
LRS_PASSWORD=
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
/lib
/lib
.env
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 0.0.2 (14 Apr 2020)
- Added Jest unit tests for LRSConnection
- Added `voidStatement()` and `getVoidedStatement()` methods
- Updated `getStatements()` to support queries

# 0.0.1 (10 Feb 2020)
- Added xAPI LRS connection and statement getting/sending (WIP)
- Added SCORM Profile for performing SCORM style xAPI communications (WIP)
13 changes: 13 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-typescript',
],
};
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require('dotenv').config();

module.exports = {
preset: 'ts-jest',
setupFiles: ['./jest.setup.js']
};
1 change: 1 addition & 0 deletions jest.setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require('cross-fetch/polyfill');
Loading

0 comments on commit c7d3053

Please sign in to comment.