+
+ it('adds the name of each cycle for the right side', function () {
+ var center = 500 / 2;
+ spyOn(svg, 'text').andReturn(svg);
+ radarGraph.plot();
+
+ expect(svg.append).toHaveBeenCalledWith('text');
+ expect(svg.attr).toHaveBeenCalledWith('y', center + 4);
+ expect(svg.attr).toHaveBeenCalledWith('x', 0 + 10);
+ expect(svg.text).toHaveBeenCalledWith('Adopt');
+
+ expect(svg.append).toHaveBeenCalledWith('text');
+ expect(svg.attr).toHaveBeenCalledWith('y', center + 4);
+ expect(svg.attr).toHaveBeenCalledWith('x', 0 + (center / 2) + 10);
+ expect(svg.text).toHaveBeenCalledWith('Hold');
+ });
+
+ it('adds the name of each cycle for the right side', function () {
+ var center = 500 / 2;
+ spyOn(svg, 'text').andReturn(svg);
+ radarGraph.plot();
+
+ expect(svg.append).toHaveBeenCalledWith('text');
+ expect(svg.attr).toHaveBeenCalledWith('y', center + 4);
+ expect(svg.attr).toHaveBeenCalledWith('x', 500 - 10);
+ expect(svg.attr).toHaveBeenCalledWith('text-anchor', 'end');
+ expect(svg.text).toHaveBeenCalledWith('Adopt');
+
+ expect(svg.append).toHaveBeenCalledWith('text');
+ expect(svg.attr).toHaveBeenCalledWith('y', center + 4);
+ expect(svg.attr).toHaveBeenCalledWith('x', 500 - (center / 2) - 10);
+ expect(svg.attr).toHaveBeenCalledWith('text-anchor', 'end');
+ expect(svg.text).toHaveBeenCalledWith('Hold');
+ });