Skip to content

Commit

Permalink
use destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Retribution98 committed Jan 27, 2025
1 parent e1f1775 commit 3d2917c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/bindings/js/.eslintrc-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {
'key-spacing': ['error', { beforeColon: false }],
'no-multiple-empty-lines': ['error', { max: 1, maxBOF: 0, maxEOF: 0 }],
'keyword-spacing': ['error', { overrides: { catch: { after: false } } }],
'prefer-destructuring': ["error", { "object": true, "array": false }],
'@typescript-eslint/no-var-requires': 0,
}
};
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/unit/compiled_model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('ov.CompiledModel tests', () => {
let compiledModel = null;

before(async () => {
const testModelFP32 = testModels.testModelFP32;
const { testModelFP32 } = testModels;
await isModelAvailable(testModelFP32);
testXml = testModelFP32.xml;
core = new ov.Core();
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/unit/core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { describe, it, before, beforeEach } = require('node:test');
const { testModels, isModelAvailable } = require('../utils.js');

describe('ov.Core tests', () => {
const testModelFP32 = testModels.testModelFP32;
const { testModelFP32 } = testModels;
let core = null;
before(async () => {
await isModelAvailable(testModelFP32);
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/unit/infer_request.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const {
const epsilon = 0.5; // To avoid very small numbers

describe('ov.InferRequest tests', () => {
const testModelFP32 = testModels.testModelFP32;
const { testModelFP32 } = testModels;
let compiledModel = null;
let tensorData = null;
let tensor = null;
Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/unit/model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { describe, it, before, beforeEach } = require('node:test');
const { testModels, isModelAvailable } = require('../utils.js');

describe('ov.Model tests', () => {
const testModelFP32 = testModels.testModelFP32;
const { testModelFP32 } = testModels;
let core = null;
let model = null;

Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/unit/pre_post_processor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { describe, it, before, beforeEach } = require('node:test');
const { testModels, isModelAvailable } = require('../utils.js');

describe('ov.preprocess.PrePostProcessor tests', () => {
const testModelFP32 = testModels.testModelFP32;
const { testModelFP32 } = testModels;
let core = null;
let model = null;

Expand Down
2 changes: 1 addition & 1 deletion src/bindings/js/node/tests/unit/read_model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { describe, it, before, beforeEach } = require('node:test');
const { testModels, isModelAvailable } = require('../utils.js');

describe('Tests for reading model.', () => {
const testModelFP32 = testModels.testModelFP32;
const { testModelFP32 } = testModels;
let modelFile = null;
let modelStr = null;
let weightsFile = null;
Expand Down

0 comments on commit 3d2917c

Please sign in to comment.