import { Graph } from './graph' ; describe ( 'Graph' , ( ) => { it ( 'should get all neighbors graph' , ( ) => { const graph = new Graph ( { w : 10 , h : 6 } ) ; expect ( graph . getVertex ( 0 ) ) . toEqual ( [ 50 , 9 , 10 , 1 ] ) ; expect ( graph . getVertex ( 10 ) ) . toEqual ( [ 0 , 19 , 20 , 11 ] ) ; expect ( graph . getVertex ( 54 ) ) . toEqual ( [ 44 , 53 , 4 , 55 ] ) ; expect ( graph . getVertex ( 58 ) ) . toEqual ( [ 48 , 57 , 8 , 59 ] ) ; expect ( graph . getVertex ( 59 ) ) . toEqual ( [ 49 , 58 , 9 , 50 ] ) ; expect ( graph . getVertex ( 8 ) ) . toEqual ( [ 58 , 7 , 18 , 9 ] ) ; } ) ; } ) ;