File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/bindings/js/node/tests/unit Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -289,11 +289,10 @@ describe("ov.Model tests", () => {
289289 it ( "should return node friendly names expected in the calling model" , ( ) => {
290290 const model = core . readModelSync ( addModel . xml ) ;
291291 const modelOps = model . getOps ( ) ;
292- const nodeFriendlyNames = [ "data1" , "data2" , "Add_361" , "Result_362" ] ;
293- assert . deepStrictEqual ( modelOps . length , nodeFriendlyNames . length ) ;
294- for ( const [ index , nodeName ] of nodeFriendlyNames . entries ( ) ) {
295- assert . deepStrictEqual ( modelOps [ index ] . getFriendlyName ( ) , nodeName ) ;
296- }
292+ const expectedNames = new Set ( [ "data1" , "data2" , "Add_361" , "Result_362" ] ) ;
293+ assert . deepStrictEqual ( modelOps . length , expectedNames . size ) ;
294+ const actualNames = new Set ( modelOps . map ( ( node ) => node . getFriendlyName ( ) ) ) ;
295+ assert . deepStrictEqual ( actualNames , expectedNames ) ;
297296 } ) ;
298297
299298 it ( "should not accept any arguments" , ( ) => {
You can’t perform that action at this time.
0 commit comments