Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed May 17, 2024
1 parent 38b7d0d commit 815f4d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions packages/language-server/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,7 @@ export default class CSSLanguageServer {
capabilities: SERVER_CAPABILITIES
}
}),
this.connection.onInitialized(() => this.init()),
/**
* In the test environment, this.connection.onInitialized is not executed.
*/
this.connection.onNotification(InitializedNotification.type, () => {
console.log('fuck')
this.init()
})
this.connection.onInitialized(() => this.init())
)
this.connection.listen()
}
Expand Down
1 change: 0 additions & 1 deletion packages/language-server/tests/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export function connect(settings?: Settings) {
class TestStream extends Duplex {
_write(chunk: string, _encoding: BufferEncoding, done: () => void) {
this.emit('data', chunk)
// console.log(chunk.toString())
done()
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
Expand Down

0 comments on commit 815f4d8

Please sign in to comment.