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

Commit 873afa1

Browse files
committed
feat: add plugin-admin-api 2.0 paths
1 parent 7b7c42a commit 873afa1

File tree

3 files changed

+50
-7
lines changed

3 files changed

+50
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111
### Removed
1212

13+
## [2.0.0-beta.1] - 2021-02-03
14+
15+
### Added
16+
- feat: Add mocks, routes and routes-variants paths
17+
- feat: Add legacy path
18+
1319
## [1.1.0] - 2020-12-25
1420

1521
### Added

index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
export const DEFAULT_BASE_PATH = "/admin";
22
export const SETTINGS = "/settings";
3-
export const BEHAVIORS = "/behaviors";
4-
export const FIXTURES = "/fixtures";
53
export const ABOUT = "/about";
64
export const ALERTS = "/alerts";
5+
6+
export const MOCKS = "/mocks";
7+
export const ROUTES = "/routes";
8+
export const ROUTES_VARIANTS = "/routes-variants";
9+
10+
export const LEGACY = "/legacy";
11+
export const BEHAVIORS = "/behaviors";
12+
export const FIXTURES = "/fixtures";

test/index.spec.js

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,54 @@
1-
import { DEFAULT_BASE_PATH, SETTINGS, BEHAVIORS, FIXTURES, ABOUT } from "../index";
1+
import {
2+
DEFAULT_BASE_PATH,
3+
ABOUT,
4+
SETTINGS,
5+
ALERTS,
6+
MOCKS,
7+
ROUTES,
8+
ROUTES_VARIANTS,
9+
LEGACY,
10+
BEHAVIORS,
11+
FIXTURES,
12+
} from "../index";
213

314
describe("Exported paths", () => {
415
it("should contain the default api base path", () => {
516
expect(DEFAULT_BASE_PATH).toBeDefined();
617
});
718

19+
it("should contain the about path", () => {
20+
expect(ABOUT).toBeDefined();
21+
});
22+
823
it("should contain the settings path", () => {
924
expect(SETTINGS).toBeDefined();
1025
});
1126

27+
it("should contain the alerts path", () => {
28+
expect(ALERTS).toBeDefined();
29+
});
30+
31+
it("should contain the mocks path", () => {
32+
expect(MOCKS).toBeDefined();
33+
});
34+
35+
it("should contain the routes path", () => {
36+
expect(ROUTES).toBeDefined();
37+
});
38+
39+
it("should contain the routes-variants path", () => {
40+
expect(ROUTES_VARIANTS).toBeDefined();
41+
});
42+
43+
it("should contain the legacy path", () => {
44+
expect(LEGACY).toBeDefined();
45+
});
46+
1247
it("should contain the behaviors path", () => {
1348
expect(BEHAVIORS).toBeDefined();
1449
});
1550

1651
it("should contain the fixtures path", () => {
1752
expect(FIXTURES).toBeDefined();
1853
});
19-
20-
it("should contain the about path", () => {
21-
expect(ABOUT).toBeDefined();
22-
});
2354
});

0 commit comments

Comments
 (0)