Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dianabarsan committed Jun 21, 2024
1 parent 22ce033 commit cb92b99
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/unit/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -175,6 +176,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -213,6 +215,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -261,6 +264,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic dXNyMTpwYXNz',
}),
body: JSON.stringify({ name: 'usr1', password: 'pass' }),
}
Expand All @@ -276,6 +280,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic dXNyMjpwYXNz',
}),
body: JSON.stringify({ name: 'usr2', password: 'pass' }),
}
Expand Down Expand Up @@ -365,6 +370,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -408,6 +414,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -461,6 +468,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic dXNyOnBhc3M=',
}),
body: JSON.stringify({ name: 'usr', password: 'pass' }),
}
Expand All @@ -484,6 +492,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic dXNyOnBhc3M=',
}),
body: JSON.stringify({ name: 'usr', password: 'pass' }),
}
Expand Down Expand Up @@ -525,6 +534,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic dXNyOnBhc3M=',
}),
body: JSON.stringify({ name: 'usr', password: 'pass' }),
}
Expand All @@ -541,6 +551,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic dXNyOnBhc3M=',
}),
body: JSON.stringify({ name: 'usr', password: 'pass' }),
}
Expand Down Expand Up @@ -569,6 +580,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand All @@ -586,6 +598,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -634,6 +647,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down Expand Up @@ -662,6 +676,7 @@ describe('Pouchdb Session authentication plugin', () => {
headers: new Headers({
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic YWRtaW46cGFzcw==',
}),
body: JSON.stringify({ name: 'admin', password: 'pass' }),
}
Expand Down

0 comments on commit cb92b99

Please sign in to comment.