summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fastdom-test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/fastdom-test.js b/test/fastdom-test.js
index f28dff6..64f72e5 100644
--- a/test/fastdom-test.js
+++ b/test/fastdom-test.js
@@ -385,5 +385,13 @@ suite('fastdom', function() {
fastdom.extend(999);
});
});
+
+ test('it only mixes in own properties', function() {
+ var proto = { foo: 'foo' };
+ var extension = Object.create(proto);
+ var extended = fastdom.extend(extension);
+
+ assert.isUndefined(extended.foo);
+ });
});
});