Skip to content

Commit

Permalink
Fix dotenv configuration in auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0X8 committed Dec 1, 2023
1 parent 2d5c78c commit 7508ec3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
- name: NPM dependency installation
run: npm install
- name: Run tests
run: npm test
env:
USRNAME: ${{ secrets.USRNAME }}
PASSWD: ${{ secrets.PASSWD }}
3 changes: 2 additions & 1 deletion test/auth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require('dotenv').config();
const donald = require('..');
const assert = require('assert');

require('dotenv').config();

const session = new donald.Session(process.env.USRNAME, process.env.PASSWD);

describe('auth', () => {
Expand Down

0 comments on commit 7508ec3

Please sign in to comment.