Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit eed28ea

Browse files
committed
Upgrade mocks-server dependency in tests. Upgrade admin-api-paths dependency
1 parent 101ee52 commit eed28ea

File tree

7 files changed

+32
-27
lines changed

7 files changed

+32
-27
lines changed

package-lock.json

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,16 @@
3434
"test:e2e": "npm run test:e2e:browser && npm run test:e2e:nodejs",
3535
"test:e2e:ci": "npm run test:e2e:install && npm run test:e2e"
3636
},
37+
"peerDependencies": {
38+
"@data-provider/core": "^1.7.0"
39+
},
3740
"dependencies": {
3841
"@data-provider/axios": "^1.5.0",
39-
"@data-provider/core": "^1.7.0",
40-
"@mocks-server/admin-api-paths": "^1.0.1"
42+
"@mocks-server/admin-api-paths": "^1.0.2"
4143
},
4244
"devDependencies": {
4345
"@babel/preset-env": "^7.7.7",
46+
"@data-provider/core": "^1.7.0",
4447
"@rollup/plugin-commonjs": "^11.0.0",
4548
"@rollup/plugin-node-resolve": "^6.0.0",
4649
"babel-eslint": "^10.0.3",

src/providers.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import adminApiPaths from "@mocks-server/admin-api-paths";
1+
import { ABOUT, SETTINGS, BEHAVIORS, FIXTURES } from "@mocks-server/admin-api-paths";
22
import { Api } from "@data-provider/axios";
33

44
import TAG from "./tag";
55

6-
export const about = new Api(adminApiPaths.ABOUT, {
6+
export const about = new Api(ABOUT, {
77
defaultValue: {},
88
uuid: "about",
99
tags: [TAG]
1010
});
1111

12-
export const settings = new Api(adminApiPaths.SETTINGS, {
12+
export const settings = new Api(SETTINGS, {
1313
defaultValue: {},
1414
uuid: "settings",
1515
updateMethod: "patch",
1616
tags: [TAG]
1717
});
1818

19-
export const behaviorsCollection = new Api(adminApiPaths.BEHAVIORS, {
19+
export const behaviorsCollection = new Api(BEHAVIORS, {
2020
defaultValue: [],
2121
uuid: "behaviors-collection",
2222
tags: [TAG]
2323
});
2424

25-
export const behaviorsModel = new Api(`${adminApiPaths.BEHAVIORS}/:name`, {
25+
export const behaviorsModel = new Api(`${BEHAVIORS}/:name`, {
2626
defaultValue: {},
2727
uuid: "behaviors-model",
2828
tags: [TAG]
@@ -36,13 +36,13 @@ behaviorsModel.addCustomQuery({
3636
})
3737
});
3838

39-
export const fixturesCollection = new Api(adminApiPaths.FIXTURES, {
39+
export const fixturesCollection = new Api(FIXTURES, {
4040
defaultValue: [],
4141
uuid: "fixtures-collection",
4242
tags: [TAG]
4343
});
4444

45-
export const fixturesModel = new Api(`${adminApiPaths.FIXTURES}/:id`, {
45+
export const fixturesModel = new Api(`${FIXTURES}/:id`, {
4646
defaultValue: {},
4747
uuid: "fixtures-model",
4848
tags: [TAG]

test-e2e/browser/cypress/integration/about.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ describe("About section", () => {
88
});
99

1010
it("should display current version", () => {
11-
cy.findByTestId(SELECTORS.VERSION).should("have.text", "1.2.0");
11+
cy.findByTestId(SELECTORS.VERSION).should("have.text", "1.2.1");
1212
});
1313
});

test-e2e/browser/vanilla-app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
].join('|'), 'g')
3737
</script>
3838
<script src="https://unpkg.com/@data-provider/axios@1.5.0/dist/data-provider-axios.umd.js"></script>
39-
<script src="https://unpkg.com/@mocks-server/admin-api-paths@1.0.1/dist/index.umd.js"></script>
39+
<script src="https://unpkg.com/@mocks-server/admin-api-paths@1.0.2/dist/index.umd.js"></script>
4040
<script src="js/admin-api-client.js"></script>
4141
<script src="https://code.jquery.com/jquery-3.4.1.min.js" crossorigin="anonymous"></script>
4242
<script src="main.js"></script>

test-e2e/mocks/package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-e2e/mocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"mocks:ci": "mocks-server --cli=false"
88
},
99
"devDependencies": {
10-
"@mocks-server/main": "^1.6.0"
10+
"@mocks-server/main": "^1.6.1"
1111
}
1212
}

0 commit comments

Comments
 (0)