mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-11 12:25:59 +03:00
16 lines
436 B
TypeScript
16 lines
436 B
TypeScript
import * as assert from 'assert';
|
|
|
|
import { ErrorCode, ErrorMessage } from '../src/error';
|
|
|
|
suite('Error', () => {
|
|
test('error code has message', () => {
|
|
// eslint-disable-next-line guard-for-in
|
|
for (const errorCodeString in ErrorCode) {
|
|
const errorCode = Number(errorCodeString);
|
|
if (!isNaN(errorCode)) {
|
|
assert.notStrictEqual(ErrorMessage[errorCode], undefined, errorCodeString);
|
|
}
|
|
}
|
|
});
|
|
});
|