ghost-portal/packages/ui-identicon/src/svg/circle.spec.js
Jaco Greeff ba36eede0b
Include ui-* packages in repo (development speed) (#65)
* Include ui-* packages in repo (development speed)

* Bump

* Bump

* Cleanup dependencies
2018-05-29 17:33:29 +02:00

18 lines
506 B
JavaScript

// Copyright 2017-2018 Jaco Greeff
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
const xmlserializer = require('xmlserializer');
const circle = require('./circle');
describe('circle', () => {
it('creates a basic SVG circle element', () => {
expect(
xmlserializer.serializeToString(
circle(123, 12, 34)
)
).toEqual('<circle xmlns="http://www.w3.org/2000/svg" cx="12" cy="34" r="123"/>');
});
});