@@ -47,8 +47,10 @@ describe("AutoLanguageClient", () => {
47
47
// "returns null when a single file is open"
48
48
49
49
let textEditor = ( await atom . workspace . open ( __filename ) ) as TextEditor
50
- /* eslint-disable-next-line dot-notation */
50
+ /* eslint-disable dot-notation */
51
51
expect ( client [ "determineProjectPath" ] ( textEditor ) ) . toBeNull ( )
52
+ expect ( serverManager [ "_determineProjectPath" ] ( textEditor ) ) . toBeNull ( )
53
+ /* eslint-enable dot-notation */
52
54
textEditor . destroy ( )
53
55
54
56
// "returns the project path when a file of that project is open"
@@ -59,8 +61,10 @@ describe("AutoLanguageClient", () => {
59
61
await serverManager . startServer ( projectPath )
60
62
61
63
textEditor = ( await atom . workspace . open ( __filename ) ) as TextEditor
62
- /* eslint-disable-next-line dot-notation */
64
+ /* eslint-disable dot-notation */
63
65
expect ( client [ "determineProjectPath" ] ( textEditor ) ) . toBe ( normalizePath ( projectPath ) )
66
+ expect ( serverManager [ "_determineProjectPath" ] ( textEditor ) ) . toBe ( normalizePath ( projectPath ) )
67
+ /* eslint-enable dot-notation */
64
68
textEditor . destroy ( )
65
69
66
70
// "returns the project path when an external file is open and it is not in additional paths"
@@ -73,8 +77,10 @@ describe("AutoLanguageClient", () => {
73
77
await serverManager . startServer ( projectPath )
74
78
75
79
textEditor = ( await atom . workspace . open ( externalFile ) ) as TextEditor
76
- /* eslint-disable-next-line dot-notation */
80
+ /* eslint-disable dot-notation */
77
81
expect ( client [ "determineProjectPath" ] ( textEditor ) ) . toBeNull ( )
82
+ expect ( serverManager [ "_determineProjectPath" ] ( textEditor ) ) . toBeNull ( )
83
+ /* eslint-enable dot-notation */
78
84
textEditor . destroy ( )
79
85
80
86
// "returns the project path when an external file is open and it is in additional paths"
@@ -87,8 +93,10 @@ describe("AutoLanguageClient", () => {
87
93
expect ( server . additionalPaths ?. has ( externalDir ) ) . toBeTrue ( )
88
94
89
95
textEditor = ( await atom . workspace . open ( externalFile ) ) as TextEditor
90
- /* eslint-disable-next-line dot-notation */
96
+ /* eslint-disable dot-notation */
91
97
expect ( client [ "determineProjectPath" ] ( textEditor ) ) . toBe ( normalizePath ( projectPath ) )
98
+ expect ( serverManager [ "_determineProjectPath" ] ( textEditor ) ) . toBe ( normalizePath ( projectPath ) )
99
+ /* eslint-enable dot-notation */
92
100
textEditor . destroy ( )
93
101
} )
94
102
} )
0 commit comments