summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/sugar.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/spec/sugar.js b/spec/spec/sugar.js
index 5ec6049..f79d7d5 100644
--- a/spec/spec/sugar.js
+++ b/spec/spec/sugar.js
@@ -34,10 +34,9 @@ describe('Sugar', function() {
expect(rect.attr('fill-rule')).toBe('odd')
})
- it('is a nop with no argument given and returns node reference', function() {
+ it('returns fill color when called as getter', function() {
rect.fill('red')
- expect(rect.fill()).toBe(rect)
- expect(rect.attr('fill')).toBe('red')
+ expect(rect.fill()).toBe('red')
})
})