File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Test
2
2
on : [push, pull_request]
3
3
jobs :
4
4
lint :
5
- name : ESLint & Prettier
5
+ name : ESLint & Prettier & Tests
6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : Checkout repository
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ db.on("end", () => console.log("ℹ️ Database connection ended"));
36
36
( async ( ) => {
37
37
await db . connect ( ) ;
38
38
39
- console . time ( "Time to test (excludes connection & end)" ) ;
40
-
41
- await db . set ( "userInfo" , { difficulty : "Easy" } ) ;
39
+ console . time ( "⏱ Time to test (excludes connection & end)" ) ;
42
40
43
41
await db . set ( "users.0" , {
44
42
username : "Zero" ,
@@ -86,7 +84,11 @@ db.on("end", () => console.log("ℹ️ Database connection ended"));
86
84
// Test 13
87
85
new Test ( await db . type ( "users.0.points" ) ) . test ( "number" ) ;
88
86
89
- console . timeEnd ( "Time to test (excludes connection & end)" ) ;
87
+ await db . set ( "users.0" , { username : "One" } ) ;
88
+ // Test 14
89
+ new Test ( await db . get ( "users.0.username" ) ) . test ( "One" ) ;
90
+
91
+ console . timeEnd ( "⏱ Time to test (excludes connection & end)" ) ;
90
92
91
93
await db . drop ( ) ;
92
94
await db . end ( ) ;
You can’t perform that action at this time.
0 commit comments