Skip to content

Commit a5bb5ad

Browse files
committed
💚 Add tests for install
1 parent 1b31d96 commit a5bb5ad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/unit/mixins/Install.spec.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Vue from 'vue';
2+
import VueRest from '../../../index.js';
3+
4+
describe('Testing install function', () => {
5+
6+
Vue.use(VueRest, {
7+
axiosOptions: {
8+
baseURL: 'http://localhost:8000',
9+
},
10+
});
11+
12+
test('Should apply axios settings when axiosOptions is set', () => {
13+
expect(Vue.api.defaults.baseURL).toBe('http://localhost:8000');
14+
});
15+
});

0 commit comments

Comments
 (0)