@@ -44,13 +44,13 @@ import {
4444} from '../../../src/widgets/buttons'
4545import { graph , namedNode , NamedNode , sym } from 'rdflib'
4646// @ts -ignore
47- import { foaf , rdf , sioc , vcard } from '../../../src/ns'
47+ import ns from '../../../src/ns'
4848// @ts -ignore
4949import { icons } from '../../../src/iconBase'
5050import { clearStore } from '../helpers/clearStore'
5151import { domWithHead } from '../../helpers/dom-with-head'
5252import { solidLogicSingleton } from 'solid-logic'
53- import * as style from '../../../src/style'
53+ import { style } from '../../../src/style'
5454const { iconBase } = icons
5555const store = solidLogicSingleton . store
5656
@@ -229,7 +229,7 @@ describe('createNameDiv', () => {
229229 } )
230230
231231 it ( 'uses the name from the obj if no title is given' , ( ) => {
232- createNameDiv ( dom , element , null , obj )
232+ createNameDiv ( dom , element , undefined , obj )
233233 expect ( element . children [ 0 ] . textContent ) . toEqual ( 'name' )
234234 } )
235235} )
@@ -274,31 +274,31 @@ describe('findImage', () => {
274274 expect ( findImage ) . toBeInstanceOf ( Function )
275275 } )
276276 it ( 'handles foaf(Agent)' , ( ) =>
277- expect ( findImage ( foaf ( 'Agent' ) ) ) . toEqual ( iconBase + 'noun_98053.svg' ) )
277+ expect ( findImage ( ns . foaf ( 'Agent' ) ) ) . toEqual ( iconBase + 'noun_98053.svg' ) )
278278 it ( 'handles rdf(Resource)' , ( ) =>
279- expect ( findImage ( rdf ( 'Resource' ) ) ) . toEqual ( iconBase + 'noun_98053.svg' ) )
279+ expect ( findImage ( ns . rdf ( 'Resource' ) ) ) . toEqual ( iconBase + 'noun_98053.svg' ) )
280280 it ( 'handles sioc(avatar)' , ( ) => {
281- store . add ( subject , sioc ( 'avatar' ) , imageObject , subject . doc ( ) )
281+ store . add ( subject , ns . sioc ( 'avatar' ) , imageObject , subject . doc ( ) )
282282 expect ( findImage ( subject ) ) . toEqual ( imageObject . uri )
283283 } )
284284 it ( 'handles sioc(avatar)' , ( ) => {
285- store . add ( subject , foaf ( 'img' ) , imageObject , subject . doc ( ) )
285+ store . add ( subject , ns . foaf ( 'img' ) , imageObject , subject . doc ( ) )
286286 expect ( findImage ( subject ) ) . toEqual ( imageObject . uri )
287287 } )
288288 it ( 'handles vcard(logo)' , ( ) => {
289- store . add ( subject , vcard ( 'logo' ) , imageObject , subject . doc ( ) )
289+ store . add ( subject , ns . vcard ( 'logo' ) , imageObject , subject . doc ( ) )
290290 expect ( findImage ( subject ) ) . toEqual ( imageObject . uri )
291291 } )
292292 it ( 'handles vcard(hasPhoto)' , ( ) => {
293- store . add ( subject , vcard ( 'hasPhoto' ) , imageObject , subject . doc ( ) )
293+ store . add ( subject , ns . vcard ( 'hasPhoto' ) , imageObject , subject . doc ( ) )
294294 expect ( findImage ( subject ) ) . toEqual ( imageObject . uri )
295295 } )
296296 it ( 'handles vcard(photo)' , ( ) => {
297- store . add ( subject , vcard ( 'photo' ) , imageObject , subject . doc ( ) )
297+ store . add ( subject , ns . vcard ( 'photo' ) , imageObject , subject . doc ( ) )
298298 expect ( findImage ( subject ) ) . toEqual ( imageObject . uri )
299299 } )
300300 it ( 'handles foaf(depiction)' , ( ) => {
301- store . add ( subject , foaf ( 'depiction' ) , imageObject , subject . doc ( ) )
301+ store . add ( subject , ns . foaf ( 'depiction' ) , imageObject , subject . doc ( ) )
302302 expect ( findImage ( subject ) ) . toEqual ( imageObject . uri )
303303 } )
304304 it ( 'returns null when nothing is found' , ( ) => expect ( findImage ( subject ) ) . toBeNull ( ) )
0 commit comments