Skip to content

Commit 475a594

Browse files
Adding tests
1 parent 9a5d454 commit 475a594

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/vuedraggable.spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,15 @@ describe("draggable.vue when initialized with value", () => {
560560
element = wrapper.element;
561561
});
562562

563+
it("computes indexes", async () =>{
564+
await Vue.nextTick();
565+
expect(vm.visibleIndexes).toEqual([0, 1, 2]);
566+
});
567+
568+
it("transition mode should be false", async () =>{
569+
expect(vm.transitionMode).toBe(false);
570+
});
571+
563572
describe("when initiating a drag operation", () => {
564573
let evt;
565574
beforeEach(() => {

0 commit comments

Comments
 (0)