Skip to content

Commit 4c4f1f2

Browse files
authored
[OV JS] Add linter check on CIs (#32565)
### Details: - Add linter check on CIs - Format files ### Tickets: - [CVS-170806](https://jira.devtools.intel.com/browse/CVS-170806)
1 parent 2b14278 commit 4c4f1f2

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/job_openvino_js.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ jobs:
7373
working-directory: ${{ env.OPENVINO_JS_DIR }}
7474
run: npm i
7575

76+
- name: Check lint
77+
working-directory: ${{ env.OPENVINO_JS_DIR }}
78+
run: npm run lint
79+
7680
- name: Test OpenVINO JS API
7781
working-directory: ${{ env.OPENVINO_JS_DIR }}
7882
run: npm run test --loglevel=silly

src/bindings/js/node/lib/addon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ interface Node {
334334
/**
335335
* It constructs a default Node object.
336336
*/
337-
new(): Node;
337+
new (): Node;
338338
/**
339339
* It gets the unique name of the node.
340340
* @returns A string with the name of the node.

src/bindings/js/node/tests/unit/model.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,25 +280,25 @@ describe("ov.Model tests", () => {
280280
});
281281
});
282282

283-
describe('Model.getOps()', () => {
284-
it('should return objects of type Node', () => {
283+
describe("Model.getOps()", () => {
284+
it("should return objects of type Node", () => {
285285
const modelOps = model.getOps();
286286
assert.ok(modelOps[0] instanceof ov.Node);
287287
});
288288

289-
it('should return node names expected in the calling model', () => {
289+
it("should return node names expected in the calling model", () => {
290290
const model = core.readModelSync(addModel.xml);
291291
const modelOps = model.getOps();
292-
const nodeNames = ['Parameter_7674', 'Parameter_7672', 'Result_7678', 'Add_7676'];
292+
const nodeNames = ["Parameter_7674", "Parameter_7672", "Result_7678", "Add_7676"];
293293
assert.deepStrictEqual(modelOps.length, nodeNames.length);
294294
for (const [index, node] of nodeNames.entries()) {
295295
assert.deepStrictEqual(modelOps[index].getName(), node);
296296
}
297297
});
298298

299-
it('should not accept any arguments', () => {
299+
it("should not accept any arguments", () => {
300300
assert.throws(
301-
() => model.getOps('Unexpected argument').then(),
301+
() => model.getOps("Unexpected argument").then(),
302302
/'getOps' method called with incorrect parameters./,
303303
);
304304
});

0 commit comments

Comments
 (0)