File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ beforeAll((done) => {
1717} ) ;
1818
1919function cleanUp ( callback ) {
20- tutorialModel . remove ( { no : "123git " } ) . then ( ( ) => {
20+ tutorialModel . remove ( { no : "123 " } ) . then ( ( ) => {
2121 connector . disconnect ( ( DBerr ) => {
2222 if ( DBerr ) console . log ( "Database dissconnnect error: " , DBerr ) ;
2323 server . close ( ( serverErr ) => {
@@ -38,7 +38,7 @@ describe("checking tutorial functions", () => {
3838 no : "123" ,
3939 title : "abc" ,
4040 hours : "3" ,
41- cognitiveLevel : "abc" ,
41+ cognitiveLevel : [ "L1" ] ,
4242 } ) ;
4343 expect ( response . headers [ "content-type" ] ) . toMatch ( / j s o n / ) ;
4444 expect ( response . status ) . toBe ( 200 ) ;
@@ -50,7 +50,7 @@ describe("checking tutorial functions", () => {
5050 no : "123" ,
5151 title : "abc" ,
5252 hours : "3" ,
53- cognitiveLevel : "abc" ,
53+ cognitiveLevel : [ "L1" , "L2" ] ,
5454 } ) ;
5555 } ) ;
5656
You can’t perform that action at this time.
0 commit comments