license import * as tfconverter from '@tensorflow/tfjs-converter' ; import { KARMA_SERVER , REGRESSION } from './constants' ; const DATA_URL = 'metadata' ; describe ( `${ REGRESSION } Metadata` , ( ) => { it ( 'can load metadata.' , async ( ) => { const model = await tfconverter . loadGraphModel ( `${ KARMA_SERVER }/${ DATA_URL }/model.json` ) ; const metadata = { metadata1 : { a : 1 } , metadata2 : { label1 : 0 , label2 : 1 } } ; expect ( model . metadata ) . toEqual ( metadata ) ; } ) ; } ) ;