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

Commit

Permalink
Merge pull request #4 from mocks-server/v1.0.2
Browse files Browse the repository at this point in the history
V1.0.2
  • Loading branch information
javierbrea authored Dec 25, 2019
2 parents dc7099c + 37748d6 commit 1693135
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
"@babel/env"
]
}
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"node": true
},
"parserOptions": {
"ecmaVersion": "2018"
"ecmaVersion": "2018",
"sourceType": "module"
},
"plugins": ["prettier"],
"rules": {
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [1.0.2] - 2019-12-25
### Fixed
- Fix export format

## [1.0.1] - 2019-12-24
### Fixed
- Fix README badges
Expand Down
14 changes: 5 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
const PATHS = {
DEFAULT_BASE_PATH: "/admin",
SETTINGS: "/settings",
BEHAVIORS: "/behaviors",
FIXTURES: "/fixtures",
ABOUT: "/about"
};

module.exports = PATHS;
export const DEFAULT_BASE_PATH = "/admin";
export const SETTINGS = "/settings";
export const BEHAVIORS = "/behaviors";
export const FIXTURES = "/fixtures";
export const ABOUT = "/about";
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mocks-server/admin-api-paths",
"version": "1.0.1",
"version": "1.0.2",
"description": "Api paths of @mocks-server/plugin-admin-api",
"keywords": [
"mocks-server-plugin",
Expand Down Expand Up @@ -31,6 +31,7 @@
},
"devDependencies": {
"@babel/preset-env": "^7.7.7",
"babel-jest": "^24.9.0",
"coveralls": "^3.0.7",
"eslint": "6.6.0",
"eslint-config-prettier": "6.5.0",
Expand Down
12 changes: 6 additions & 6 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
const index = require("../index");
import { DEFAULT_BASE_PATH, SETTINGS, BEHAVIORS, FIXTURES, ABOUT } from "../index";

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

it("should contain the settings path", () => {
expect(index.SETTINGS).toBeDefined();
expect(SETTINGS).toBeDefined();
});

it("should contain the behaviors path", () => {
expect(index.BEHAVIORS).toBeDefined();
expect(BEHAVIORS).toBeDefined();
});

it("should contain the fixtures path", () => {
expect(index.FIXTURES).toBeDefined();
expect(FIXTURES).toBeDefined();
});

it("should contain the about path", () => {
expect(index.ABOUT).toBeDefined();
expect(ABOUT).toBeDefined();
});
});

0 comments on commit 1693135

Please sign in to comment.