describe('SVG.utils', function() { describe('degrees()', function() { it('converts radiant to degrees', function() { expect(SVG.utils.degrees(Math.PI)).toBe(180) }) it('maps to 0 - 360 degree only', function() { expect(SVG.utils.degrees(2.5 * Math.PI)).toBe(90) }) }) })