aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec/text.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec/text.js')
-rw-r--r--spec/spec/text.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec/text.js b/spec/spec/text.js
index 83fd23a..18acec6 100644
--- a/spec/spec/text.js
+++ b/spec/spec/text.js
@@ -102,6 +102,13 @@ describe('Text', function() {
expect(text.style('font-size')).toBe(50)
})
})
+
+ describe('translate()', function() {
+ it('should set the translation of an element', function() {
+ text.transform({ x: 12, y: 12 })
+ expect(text.node.getAttribute('transform')).toBe('translate(12,12)')
+ })
+ })
})