Skip to content

Commit

Permalink
ユニットテストとLintを調整
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Nov 13, 2023
1 parent 4314f07 commit 22d8b6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run lint
- run: npx eslint ./src/**/*.ts

windows-browser-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm install
- run: npm run lint
- run: npx eslint ./src/**/*.ts
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.gitattributes
.gitignore
.github
node_modules
__tests__
scripts
src
Framework_Flowchart.svg
tsconfig.eslint.json
Expand Down
2 changes: 1 addition & 1 deletion src/domain/parser/QueryParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const execute = (name: string = ""): QueryObjectImpl =>
}
}

const defaultTop: string = config.defaultTop || "top";
const defaultTop: string = config?.defaultTop || "top";
if (!name) {
const names: string[] = location.pathname.split("/");
names.shift();
Expand Down
1 change: 1 addition & 0 deletions src/interface/ConfigImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface ConfigImpl extends BaseConfigImpl {
routing?: {
[key: string]: RoutingImpl
};
defaultTop?: string;
spa: boolean;
loading?: {
callback: string;
Expand Down

0 comments on commit 22d8b6c

Please sign in to comment.