license import * as tf from './index' ; describe ( 'Ops are exported from index and work' , ( ) => { it ( 'tf.mul works' , async ( ) => { const a = tf . tensor1d ( [ 1 , 2 , 3 ] ) ; const b = tf . tensor1d ( [ 3 , 4 , 5 ] ) ; tf . test_util . expectArraysClose ( await a . mul ( b ) . data ( ) , [ 3 , 8 , 15 ] ) ; } ) ; } ) ; describe ( 'packages merge' , ( ) => { it ( 'versions' , ( ) => { expect ( tf . version [ 'tfjs' ] ) . toBeDefined ( ) ; expect ( tf . version [ 'tfjs-core' ] ) . toBeDefined ( ) ; const expectedNodeVersion = require ( '../package.json' ) . version ; expect ( tf . version [ 'tfjs-node' ] ) . toBe ( expectedNodeVersion ) ; } ) ; it ( 'symbols merge' , ( ) => { expect ( tf . mul ) . toBeDefined ( ) ; expect ( tf . layers . dense ) . toBeDefined ( ) ; expect ( tf . io . listModels ) . toBeDefined ( ) ; expect ( tf . io . nodeHTTPRequest ) . toBeDefined ( ) ; } ) ; } ) ;