mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-21 09:07:56 +03:00
7e8924aea7
Also enforce it with a tslint rule. See the style guide for why const/let are preferred.
16 lines
416 B
TypeScript
16 lines
416 B
TypeScript
import * as assert from 'assert';
|
|
|
|
import { ErrorCode, ErrorMessage } from '../src/error';
|
|
|
|
suite('Error', () => {
|
|
test('error code has message', () => {
|
|
/* tslint:disable:forin */
|
|
for (const errorCodeString in ErrorCode) {
|
|
const errorCode = Number(errorCodeString);
|
|
if (!isNaN(errorCode)) {
|
|
assert.notEqual(ErrorMessage[errorCode], undefined, errorCodeString);
|
|
}
|
|
}
|
|
});
|
|
});
|