fix: add eslint-disable comments in Thrift tests
This commit is contained in:
parent
2cf80334b0
commit
90a9c38a4f
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
import Operation from "../Operation.mjs";
|
||||
import {
|
||||
import {
|
||||
buildBinaryStruct
|
||||
} from "../lib/Thrift.mjs";
|
||||
|
||||
|
||||
@ -336,6 +336,7 @@ TestRegister.addApiTests([
|
||||
// ===== buildBinaryStruct tests =====
|
||||
it("Thrift: buildBinaryStruct - simple struct", () => {
|
||||
const bytes = [];
|
||||
// eslint-disable-next-line camelcase
|
||||
const jsonStruct = {
|
||||
field_1: { type: "I32", value: 42 }
|
||||
};
|
||||
@ -350,6 +351,7 @@ TestRegister.addApiTests([
|
||||
|
||||
it("Thrift: buildBinaryStruct - multiple fields", () => {
|
||||
const bytes = [];
|
||||
// eslint-disable-next-line camelcase
|
||||
const jsonStruct = {
|
||||
field_1: { type: "I32", value: 42 },
|
||||
field_2: { type: "BINARY", value: "hello" }
|
||||
@ -361,6 +363,7 @@ TestRegister.addApiTests([
|
||||
|
||||
it("Thrift: buildBinaryStruct - BOOL field", () => {
|
||||
const bytes = [];
|
||||
// eslint-disable-next-line camelcase
|
||||
const jsonStruct = {
|
||||
field_1: { type: "BOOL", value: true }
|
||||
};
|
||||
@ -375,6 +378,7 @@ TestRegister.addApiTests([
|
||||
|
||||
it("Thrift: buildBinaryStruct - nested struct", () => {
|
||||
const bytes = [];
|
||||
// eslint-disable-next-line camelcase
|
||||
const jsonStruct = {
|
||||
field_1: {
|
||||
type: "STRUCT",
|
||||
@ -391,6 +395,7 @@ TestRegister.addApiTests([
|
||||
|
||||
it("Thrift: buildBinaryStruct - invalid field ID skipped", () => {
|
||||
const bytes = [];
|
||||
// eslint-disable-next-line camelcase
|
||||
const jsonStruct = {
|
||||
invalid_field: { type: "I32", value: 42 },
|
||||
field_1: { type: "I32", value: 10 }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user