eslint: Fix outstanding naming issues

This commit is contained in:
willclarktech
2020-07-15 13:29:35 +02:00
parent 6d387412af
commit 37a5cd5c8b
3 changed files with 7 additions and 7 deletions
@@ -92,7 +92,7 @@ describe("ReconnectingSocket", () => {
describe("reconnection", () => {
const dirPath = "../../scripts/socketserver";
const PKILL_NO_PROCESSES_MATCHED = 1;
const codePkillNoProcessesMatched = 1;
const startServerCmd = `${dirPath}/start.sh`;
const stopServerCmd = `${dirPath}/stop.sh`;
@@ -101,7 +101,7 @@ describe("ReconnectingSocket", () => {
pendingWithoutSocketServer();
exec!(stopServerCmd, (stopError) => {
if (stopError && stopError.code !== PKILL_NO_PROCESSES_MATCHED) {
if (stopError && stopError.code !== codePkillNoProcessesMatched) {
done.fail(stopError);
}
@@ -164,7 +164,7 @@ describe("ReconnectingSocket", () => {
setTimeout(
() =>
exec!(stopServerCmd, (stopError) => {
if (stopError && stopError.code !== PKILL_NO_PROCESSES_MATCHED) {
if (stopError && stopError.code !== codePkillNoProcessesMatched) {
done.fail(stopError);
}
+2 -2
View File
@@ -220,8 +220,8 @@ export interface Commit {
* raw values from https://github.com/tendermint/tendermint/blob/dfa9a9a30a666132425b29454e90a472aa579a48/types/vote.go#L44
*/
export enum VoteType {
PREVOTE = 1,
PRECOMMIT = 2,
PreVote = 1,
PreCommit = 2,
}
export interface Vote {
+2 -2
View File
@@ -175,8 +175,8 @@ export interface Commit {
* raw values from https://github.com/tendermint/tendermint/blob/dfa9a9a30a666132425b29454e90a472aa579a48/types/vote.go#L44
*/
export declare enum VoteType {
PREVOTE = 1,
PRECOMMIT = 2,
PreVote = 1,
PreCommit = 2,
}
export interface Vote {
readonly type: VoteType;