This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mocks-server/v1.0.2
V1.0.2
- Loading branch information
Showing
7 changed files
with
31 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"@babel/env" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |