Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

プリロードのテスト等修正 #141

Merged
merged 4 commits into from
Jan 20, 2022
Merged

プリロードのテスト等修正 #141

merged 4 commits into from
Jan 20, 2022

Conversation

kamataryo
Copy link
Contributor

  • ローカルファイル参照が動作していなかった(すみません..)のでこのバグを修正
  • README にプリロードオプションについて記載
  • 外部に通信していないことをテストするようにテストを修正

@kamataryo kamataryo requested a review from keichan34 January 19, 2022 08:45
src/main-node.ts Outdated
@@ -28,7 +29,9 @@ export const preload = async () => {
// file:// でローカルにダウンロードした zip ファイルを参照する。
// https://github.com/geolonia/japanese-addresses のリポジトリと同じ構造を持つものを想定
if (currentConfig.japaneseAddressesApi.startsWith('file://')) {
zipBuffer = fs.readFileSync(currentConfig.japaneseAddressesApi)
zipBuffer = fs.readFileSync(
currentConfig.japaneseAddressesApi.replace('file:/', ''),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace(/^file:\// の方がいいと思います

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@keichan34 ありがとうございます修正しました 🙇

@kamataryo kamataryo requested a review from keichan34 January 20, 2022 02:48
@kamataryo kamataryo merged commit 0bd6100 into master Jan 20, 2022
@kamataryo kamataryo deleted the enhance-testing branch January 20, 2022 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants