|
1 | 1 | /* eslint-disable import/no-deprecated */
|
2 | 2 | import { Range } from "atom"
|
3 |
| -import { expect } from "chai" |
4 | 3 | import * as path from "path"
|
5 | 4 | import IdeDiagnosticAdapter from "../../lib/adapters/diagnostic-adapter"
|
6 | 5 | import Convert from "../../lib/convert"
|
@@ -34,9 +33,9 @@ describe("IdeDiagnosticAdapter", () => {
|
34 | 33 | // using private method
|
35 | 34 | // eslint-disable-next-line dot-notation
|
36 | 35 | 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() |
40 | 39 | })
|
41 | 40 | })
|
42 | 41 | })
|
0 commit comments