diff options
Diffstat (limited to 'spec/spec/image.js')
-rw-r--r-- | spec/spec/image.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec/image.js b/spec/spec/image.js index 05f56b2..544a937 100644 --- a/spec/spec/image.js +++ b/spec/spec/image.js @@ -92,6 +92,13 @@ describe('Image', function() { expect(box.height).toBe(image.attr('height') * 3.5) }) }) + + describe('translate()', function() { + it('should set the translation of an element', function() { + image.transform({ x: 12, y: 12 }) + expect(image.node.getAttribute('transform')).toBe('translate(12,12)') + }) + }) }) |