-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* build, dotenv path prefix * build, html template add in lang attribute from dotenv * routerTypes, create a dynamic routing baseName
- Loading branch information
Showing
10 changed files
with
75 additions
and
43 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
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
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
16 changes: 8 additions & 8 deletions
16
src/components/router/__tests__/__snapshots__/routerTypes.test.js.snap
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,8 +1,39 @@ | ||
import { baseName, routes } from '../routerTypes'; | ||
import { baseName, dynamicBaseName, routes } from '../routerTypes'; | ||
|
||
describe('RouterTypes', () => { | ||
it('should return specific properties', () => { | ||
expect(baseName).toMatchSnapshot('baseName'); | ||
expect(baseName).toBeDefined(); | ||
expect(dynamicBaseName).toBeDefined(); | ||
expect(routes).toMatchSnapshot('routes'); | ||
}); | ||
|
||
it('should return a generated baseName', () => { | ||
expect( | ||
dynamicBaseName({ | ||
pathName: '/apps/appName', | ||
pathPrefix: '/beta' | ||
}) | ||
).toMatchSnapshot('app base name'); | ||
|
||
expect( | ||
dynamicBaseName({ | ||
pathName: '/apps/lorem/appName', | ||
pathPrefix: '/beta' | ||
}) | ||
).toMatchSnapshot('app base lorem base name'); | ||
|
||
expect( | ||
dynamicBaseName({ | ||
pathName: '/beta/apps/appName', | ||
pathPrefix: '/beta' | ||
}) | ||
).toMatchSnapshot('beta app base name'); | ||
|
||
expect( | ||
dynamicBaseName({ | ||
pathName: '/beta/apps/lorem/appName', | ||
pathPrefix: '/beta' | ||
}) | ||
).toMatchSnapshot('beta app lorem base name'); | ||
}); | ||
}); |
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