File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 19
19
node-version :
20
20
- 20
21
21
22
+ services :
23
+ postgres :
24
+ image : postgres:14
25
+ env :
26
+ POSTGRES_PASSWORD : " changeit"
27
+ options : >-
28
+ --health-cmd pg_isready
29
+ --health-interval 10s
30
+ --health-timeout 5s
31
+ --health-retries 5
32
+ ports :
33
+ - 5432:5432
34
+
22
35
steps :
23
36
- name : Checkout repository
24
37
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 10
10
"scripts" : {
11
11
"start" : " node entrypoint.js" ,
12
12
"dev" : " node index.js" ,
13
- "test" : " mocha --recursive" ,
13
+ "test" : " mocha --exit -- recursive" ,
14
14
"format" : " prettier -w index.js src/ test/"
15
15
},
16
16
"dependencies" : {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ describe("auth", () => {
28
28
} ) ,
29
29
} ) ;
30
30
31
- expect ( res . status ) . to . eql ( 204 ) ;
31
+ expect ( res . status ) . to . eql ( 200 ) ;
32
32
33
33
const cookieHeader = res . headers . get ( "set-cookie" ) ;
34
34
const sid = cookieHeader . substring (
@@ -104,7 +104,7 @@ describe("auth", () => {
104
104
} ) ,
105
105
} ) ;
106
106
107
- expect ( res . status ) . to . eql ( 204 ) ;
107
+ expect ( res . status ) . to . eql ( 200 ) ;
108
108
109
109
const cookieHeader = res . headers . get ( "set-cookie" ) ;
110
110
const sid = cookieHeader . substring (
You can’t perform that action at this time.
0 commit comments