Skip to content

Commit 622ebb3

Browse files
Testing is cloning
1 parent 8e007f0 commit 622ebb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/vuedraggable.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ describe("draggable.vue when initialized with list", () => {
363363
start(evt);
364364
});
365365

366+
it("sets the isCloning flag", () => {
367+
expect(vm.isCloning).toBe(false);
368+
})
369+
366370
it("sends a start event", async () => {
367371
await Vue.nextTick();
368372
expect(wrapper.emitted()).toEqual({
@@ -601,6 +605,10 @@ describe("draggable.vue when initialized with list", () => {
601605
start(evt);
602606
});
603607

608+
it("sets the isCloning flag", () => {
609+
expect(vm.isCloning).toBe(true);
610+
})
611+
604612
describe("when remove is called", () => {
605613
beforeEach(() => {
606614
var clone = item.cloneNode(true);

0 commit comments

Comments
 (0)