fix: add eslint-disable comments in Thrift tests

This commit is contained in:
engin0223 2026-06-05 14:25:33 +03:00
parent 2cf80334b0
commit 90a9c38a4f
2 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@
*/ */
import Operation from "../Operation.mjs"; import Operation from "../Operation.mjs";
import { import {
buildBinaryStruct buildBinaryStruct
} from "../lib/Thrift.mjs"; } from "../lib/Thrift.mjs";

View File

@ -336,6 +336,7 @@ TestRegister.addApiTests([
// ===== buildBinaryStruct tests ===== // ===== buildBinaryStruct tests =====
it("Thrift: buildBinaryStruct - simple struct", () => { it("Thrift: buildBinaryStruct - simple struct", () => {
const bytes = []; const bytes = [];
// eslint-disable-next-line camelcase
const jsonStruct = { const jsonStruct = {
field_1: { type: "I32", value: 42 } field_1: { type: "I32", value: 42 }
}; };
@ -350,6 +351,7 @@ TestRegister.addApiTests([
it("Thrift: buildBinaryStruct - multiple fields", () => { it("Thrift: buildBinaryStruct - multiple fields", () => {
const bytes = []; const bytes = [];
// eslint-disable-next-line camelcase
const jsonStruct = { const jsonStruct = {
field_1: { type: "I32", value: 42 }, field_1: { type: "I32", value: 42 },
field_2: { type: "BINARY", value: "hello" } field_2: { type: "BINARY", value: "hello" }
@ -361,6 +363,7 @@ TestRegister.addApiTests([
it("Thrift: buildBinaryStruct - BOOL field", () => { it("Thrift: buildBinaryStruct - BOOL field", () => {
const bytes = []; const bytes = [];
// eslint-disable-next-line camelcase
const jsonStruct = { const jsonStruct = {
field_1: { type: "BOOL", value: true } field_1: { type: "BOOL", value: true }
}; };
@ -375,6 +378,7 @@ TestRegister.addApiTests([
it("Thrift: buildBinaryStruct - nested struct", () => { it("Thrift: buildBinaryStruct - nested struct", () => {
const bytes = []; const bytes = [];
// eslint-disable-next-line camelcase
const jsonStruct = { const jsonStruct = {
field_1: { field_1: {
type: "STRUCT", type: "STRUCT",
@ -391,6 +395,7 @@ TestRegister.addApiTests([
it("Thrift: buildBinaryStruct - invalid field ID skipped", () => { it("Thrift: buildBinaryStruct - invalid field ID skipped", () => {
const bytes = []; const bytes = [];
// eslint-disable-next-line camelcase
const jsonStruct = { const jsonStruct = {
invalid_field: { type: "I32", value: 42 }, invalid_field: { type: "I32", value: 42 },
field_1: { type: "I32", value: 10 } field_1: { type: "I32", value: 10 }