Skip to content

Commit b5e926f

Browse files
Improving tests
1 parent cfc0401 commit b5e926f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/unit/vuedraggable.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,11 @@ describe("draggable.vue", () => {
5656
expect(propsValue).toEqual(value);
5757
}
5858
)
59+
60+
it("has a clone props, defaulting with identity function", () => {
61+
const expected = {};
62+
const { clone } = props;
63+
expect(clone.type).toBe(Function);
64+
expect(clone.default(expected)).toBe(expected);
65+
})
5966
});

0 commit comments

Comments
 (0)