Page MenuHomec4science

image.spec.ts
No OneTemporary

File Metadata

Created
Sat, Aug 3, 03:09

image.spec.ts

import { TlnImage} from './image';
const data = {'id': { 'value': 'asdf'}, 'filename': { 'value': './svg/asdf.svg'}, 'width': { 'value': 20}, 'height': { 'value': 20}, 'URL': { 'value': 'http://asdf.com'}, 't_left': { 'value': 0}, 't_top': { 'value': 0}, 't_width': { 'value': 20}, 't_height': { 'value': 20 }};
const rawData = { 'results': { 'bindings': [ data ], 'head': { vars: [] }}}
describe('Image', () => {
/*
it('should create the Object', ()=>{
expect(new TlnImage(data)).toBeTruthy();
});
it('should return TlnImage[]', ()=>{
let results = TlnImage.convertData(rawData);
expect(results[0].filename == './svg/asdf.svg').toBeTruthy();
});
*/
});

Event Timeline