Skip to content

Commit a548bdf

Browse files
committed
test: convert diagnostic adapter tests to jasmine
1 parent 45213d4 commit a548bdf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/adapters/diagnostics-adapter-test.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable import/no-deprecated */
22
import { Range } from "atom"
3-
import { expect } from "chai"
43
import * as path from "path"
54
import IdeDiagnosticAdapter from "../../lib/adapters/diagnostic-adapter"
65
import Convert from "../../lib/convert"
@@ -34,9 +33,9 @@ describe("IdeDiagnosticAdapter", () => {
3433
// using private method
3534
// eslint-disable-next-line dot-notation
3635
const getDiagnosticCode = adapter["getDiagnosticCode"]
37-
expect(getDiagnosticCode(mockEditor, new Range([1, 2], [3, 4]), "Test message")).to.equal("test code")
38-
expect(getDiagnosticCode(mockEditor, new Range([1, 2], [3, 4]), "Test message2")).to.not.exist
39-
expect(getDiagnosticCode(mockEditor, new Range([1, 2], [3, 5]), "Test message")).to.not.exist
36+
expect(getDiagnosticCode(mockEditor, new Range([1, 2], [3, 4]), "Test message")).toEqual("test code")
37+
expect(getDiagnosticCode(mockEditor, new Range([1, 2], [3, 4]), "Test message2")).toBeUndefined()
38+
expect(getDiagnosticCode(mockEditor, new Range([1, 2], [3, 5]), "Test message")).toBeUndefined()
4039
})
4140
})
4241
})

0 commit comments

Comments
 (0)