Skip to content

Commit 5f0c4cc

Browse files
committed
fix: secrets
and no session id, thanks
1 parent 57c4f92 commit 5f0c4cc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ jobs:
2323
npm install
2424
2525
- name: Test with jest
26+
env:
27+
SA_TEST_USERNAME: ${{ secrets.SA_TEST_USERNAME }}
28+
SA_TEST_PASSWORD: ${{ secrets.SA_TEST_PASSWORD }}
29+
2630
run: |
2731
npm run test

tests/login.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import * as sa from '../src';
22

33
test('Login by username and password', async () => {
44
const username = process.env["SA_TEST_USERNAME"];
5-
const password = process.env["SA_TEST_PASSWORD"];
6-
// const sessId = process.env["SA_TEST_SESSID"];
5+
const password = process.env["SA_TEST_PASSWORD"];
76

87
expect(username).toBeDefined();
98
expect(password).toBeDefined();

0 commit comments

Comments
 (0)