@@ -521,8 +521,9 @@ namespace ts.projectSystem {
521
521
// Commander: Existed as a JS file
522
522
// JQuery: Specified in 'include'
523
523
// Moment: Specified in 'include'
524
+ // Express: Specified in package.json
524
525
// lodash: Excluded (not present)
525
- checkProjectActualFiles ( p , [ file3dts . path , commander . path , jquery . path , moment . path ] ) ;
526
+ checkProjectActualFiles ( p , [ file3dts . path , commander . path , express . path , jquery . path , moment . path ] ) ;
526
527
} ) ;
527
528
528
529
it ( "Throttle - delayed typings to install" , ( ) => {
@@ -601,7 +602,7 @@ namespace ts.projectSystem {
601
602
}
602
603
host . checkTimeoutQueueLengthAndRun ( 2 ) ;
603
604
checkNumberOfProjects ( projectService , { externalProjects : 1 } ) ;
604
- checkProjectActualFiles ( p , [ file3 . path , commander . path , jquery . path , moment . path , lodash . path ] ) ;
605
+ checkProjectActualFiles ( p , [ file3 . path , commander . path , express . path , jquery . path , moment . path , lodash . path ] ) ;
605
606
} ) ;
606
607
607
608
it ( "Throttle - delayed run install requests" , ( ) => {
@@ -1101,11 +1102,12 @@ namespace ts.projectSystem {
1101
1102
const host = createServerHost ( [ app , jquery , chroma ] ) ;
1102
1103
const logger = trackingLogger ( ) ;
1103
1104
const result = JsTyping . discoverTypings ( host , logger . log , [ app . path , jquery . path , chroma . path ] , getDirectoryPath ( < Path > app . path ) , safeList , emptyMap , { enable : true } , emptyArray ) ;
1104
- assert . deepEqual ( logger . finish ( ) , [
1105
+ const finish = logger . finish ( ) ;
1106
+ assert . deepEqual ( finish , [
1105
1107
'Inferred typings from file names: ["jquery","chroma-js"]' ,
1106
1108
"Inferred typings from unresolved imports: []" ,
1107
1109
'Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","chroma-js"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}' ,
1108
- ] ) ;
1110
+ ] , finish . join ( "\r\n" ) ) ;
1109
1111
assert . deepEqual ( result . newTypingNames , [ "jquery" , "chroma-js" ] ) ;
1110
1112
} ) ;
1111
1113
0 commit comments