Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07d8307

Browse files
committed
Fix the problem that test case interfere with each other
1 parent 1aeb8a4 commit 07d8307

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/specs/InfiniteLoading.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('vue-infinite-loading', () => {
7676
padding: 0;
7777
}
7878
ul li {
79-
height: 20px;
79+
height: 40px;
8080
}
8181
`;
8282

@@ -97,6 +97,7 @@ describe('vue-infinite-loading', () => {
9797
});
9898

9999
afterEach(() => {
100+
basicConfig.data.list = [];
100101
// destroy Vue model after each case complete
101102
vm.$el.parentNode.removeChild(vm.$el);
102103

0 commit comments

Comments
 (0)