vona-module-test-vona 5.0.71 → 5.0.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-test-vona",
3
3
  "type": "module",
4
- "version": "5.0.71",
4
+ "version": "5.0.72",
5
5
  "title": "test-vona",
6
6
  "vonaModule": {
7
7
  "fileVersion": 1,
@@ -16,10 +16,11 @@ describe('authSimple.test.ts', () => {
16
16
 
17
17
  it('action:authSimple', async () => {
18
18
  await app.bean.executor.mockCtx(async () => {
19
+ const password = app.scope('home-user').config.passwordDefault.admin;
19
20
  // login
20
21
  const jwt = await app.bean.auth.authenticate('a-authsimple:simple', {
21
22
  clientName: 'default',
22
- clientOptions: { username: 'admin', password: '123456' },
23
+ clientOptions: { username: 'admin', password },
23
24
  });
24
25
  assert.equal(!!jwt?.accessToken, true);
25
26
  // isAuthenticated: isolate
@@ -36,7 +37,7 @@ describe('authSimple.test.ts', () => {
36
37
  assert.equal(isAuthenticated, true);
37
38
  // login again
38
39
  const jwt2 = await app.bean.authSimple.authenticate(
39
- { username: 'admin', password: '123456' },
40
+ { username: 'admin', password },
40
41
  'login',
41
42
  'default',
42
43
  );