Skip to content

Commit 5277d76

Browse files
author
John-Crawshaw
committed
test(targets/sprites): added test for duping sprite without comments
1 parent 2080ee3 commit 5277d76

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/unit/sprites_rendered-target.js

+10
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ test('comments are duplicated when duplicating target', t => {
6868
});
6969
});
7070

71+
test('no comments are duplicated when duplicating target with no comments', t => {
72+
const r = new Runtime();
73+
const s = new Sprite(null, r);
74+
const rt = new RenderedTarget(s, r);
75+
return rt.duplicate().then(duplicate => {
76+
t.equal(Object.keys(duplicate.comments).length, 0);
77+
t.end();
78+
});
79+
});
80+
7181
test('direction', t => {
7282
const r = new Runtime();
7383
const s = new Sprite(null, r);

0 commit comments

Comments
 (0)