Skip to content

Commit

Permalink
Update Vuex ORM version and move it to peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Nov 25, 2019
1 parent 42b322a commit e61be34
Show file tree
Hide file tree
Showing 9 changed files with 685 additions and 768 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@
"bugs": {
"url": "https://github.com/vuex-orm/plugin-axios/issues"
},
"peerDependencies": {
"@vuex-orm/core": ">=0.34.0"
},
"dependencies": {
"@vuex-orm/core": "^0.33.0",
"axios": "^0.19.0"
},
"devDependencies": {
"@types/jest": "^24.0.23",
"@vuex-orm/core": "^0.34.0",
"axios-mock-adapter": "^1.17.0",
"codecov": "^3.5.0",
"jest": "^24.8.0",
Expand Down
40 changes: 20 additions & 20 deletions test/feature/Request.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -54,8 +54,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -74,8 +74,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -96,8 +96,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -116,8 +116,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -138,8 +138,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -158,8 +158,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -180,8 +180,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -200,8 +200,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand All @@ -222,8 +222,8 @@ describe('Feature - Request', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' },
2: { $id: 2, id: 2, name: 'Jane Doe' }
1: { $id: '1', id: 1, name: 'John Doe' },
2: { $id: '2', id: 2, name: 'Jane Doe' }
}
})

Expand Down
4 changes: 2 additions & 2 deletions test/feature/Request_Actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Feature - Request - Actions', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John' }
1: { $id: '1', id: 1, name: 'John' }
}
})

Expand Down Expand Up @@ -72,7 +72,7 @@ describe('Feature - Request - Actions', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John' }
1: { $id: '1', id: 1, name: 'John' }
}
})

Expand Down
2 changes: 1 addition & 1 deletion test/feature/Request_DataKey.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Feature - Request - Data Key', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' }
1: { $id: '1', id: 1, name: 'John Doe' }
}
})

Expand Down
2 changes: 1 addition & 1 deletion test/feature/Request_DataTransformer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Feature - Request - Data Transformer', () => {

const expected = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' }
1: { $id: '1', id: 1, name: 'John Doe' }
}
})

Expand Down
2 changes: 1 addition & 1 deletion test/feature/Request_Delete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Feature - Request - Delete', () => {

const expected = createState({
users: {
2: { $id: 2, id: 2, name: 'Jane' }
2: { $id: '2', id: 2, name: 'Jane' }
}
})

Expand Down
2 changes: 1 addition & 1 deletion test/feature/Response_Delete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Feature - Response - Save', () => {

const expected1 = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' }
1: { $id: '1', id: 1, name: 'John Doe' }
}
})

Expand Down
2 changes: 1 addition & 1 deletion test/feature/Response_Save.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('Feature - Response - Save', () => {

const expected2 = createState({
users: {
1: { $id: 1, id: 1, name: 'John Doe' }
1: { $id: '1', id: 1, name: 'John Doe' }
}
})

Expand Down
Loading

0 comments on commit e61be34

Please sign in to comment.