// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import 'jest'; import * as fs from 'fs'; import * as path from 'path'; import { LabIcon } from '@jupyterlab/ui-components'; const fooSvgstr = fs.readFileSync(path.join(__dirname, 'foo.svg'), { encoding: 'utf8' }); const fooIcon = new LabIcon({ name: 'test-ui-components:foo', svgstr: fooSvgstr }); describe('@jupyterlab/ui-components', () => { describe('svg import', () => { it('should hold a string with the raw contents of an svg', () => { expect( fooSvgstr.startsWith(` { describe('attribute .svgstr', () => { it('should hold a string with the raw contents of an svg', () => { expect( fooIcon.svgstr.startsWith( `