Browse Source

fix(tests): change password to fulfil min length of 8

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
185f94a7b7
  1. 10
      packages/nocodb/tests/unit/rest/tests/project.test.ts

10
packages/nocodb/tests/unit/rest/tests/project.test.ts

@ -159,7 +159,7 @@ function projectTest() {
.set('xc-auth', context.token)
.send({
roles: 'viewer',
password: 'test',
password: 'password123',
})
.expect(200);
@ -168,7 +168,7 @@ function projectTest() {
if (
!updatedProject.uuid ||
updatedProject.roles !== 'viewer' ||
updatedProject.password !== 'test'
updatedProject.password !== 'password123'
) {
return new Error('Shared base not configured properly');
}
@ -180,7 +180,7 @@ function projectTest() {
.set('xc-auth', context.token)
.send({
roles: 'commenter',
password: 'test',
password: 'password123',
})
.expect(200);
@ -199,7 +199,7 @@ function projectTest() {
.set('xc-auth', context.token)
.send({
roles: 'commenter',
password: 'test',
password: 'password123',
})
.expect(200);
@ -218,7 +218,7 @@ function projectTest() {
.set('xc-auth', context.token)
.send({
roles: 'editor',
password: 'test',
password: 'password123',
})
.expect(200);
const updatedProject = await Project.getByTitleOrId(project.id);

Loading…
Cancel
Save