Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Apr 15, 2024
1 parent 38075b0 commit 20b07d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions extension/test/integration/1 - language-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { MaxTimeout } from '../globals'
import { BehaviorSubject, Subject } from 'rxjs'
import { State } from 'vscode-languageclient'
import * as sinon from 'sinon'
import { CliBinary } from '../../src/flow-cli/cli-provider'
import { SemVer } from 'semver'
import { CliBinary } from '../../src/flow-cli/binary-versions-provider'

suite('Language Server & Emulator Integration', () => {
let LS: LanguageServerAPI
Expand All @@ -33,7 +33,7 @@ suite('Language Server & Emulator Integration', () => {

// create a mock cli provider without invokign the constructor
cliBinary$ = new BehaviorSubject<CliBinary>({
name: 'flow',
path: 'flow',
version: new SemVer('1.0.0')
})
const mockCliProvider = {
Expand Down Expand Up @@ -63,7 +63,7 @@ suite('Language Server & Emulator Integration', () => {
fileModified$.next()
pathChanged$.next('foo')
cliBinary$.next({
name: 'flow',
path: 'flow',
version: new SemVer('1.0.1')
})

Expand Down
2 changes: 1 addition & 1 deletion extension/test/unit/parser.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as assert from 'assert'
import { parseFlowCliVersion } from '../../src/flow-cli/cli-provider'
import { parseFlowCliVersion } from '../../src/flow-cli/binary-versions-provider'
import { execDefault } from '../../src/utils/shell/exec'
import { ASSERT_EQUAL } from '../globals'
import * as semver from 'semver'
Expand Down

0 comments on commit 20b07d9

Please sign in to comment.