Skip to content

Commit

Permalink
テストに失敗する問題を修正 #1638
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed May 1, 2024
1 parent 5282ff2 commit 568ff32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/common/plugin_browser_ut_dialog_test.mjs
Expand Up @@ -48,7 +48,8 @@ describe('plugin_browser_dialog', () => {
chkprompt(['あいうえお'], 'あかね', 'あいうえお', 'あかね')
})
it('尋 - キャンセル', () => {
const sys = { __v0: { 'ダイアログキャンセル値': '' } }
const v0 = new Map([['ダイアログキャンセル値', '']])
const sys = { __v0: v0, __getSysVar: (key) => sys.__v0.get(key) }
chkprompt(['あいうえお', sys], null, 'あいうえお', '')
})
})
Expand Down Expand Up @@ -77,7 +78,8 @@ describe('plugin_browser_dialog', () => {
chkprompt(['あいうえお'], '1.2.3', 'あいうえお', '1.2.3')
})
it('文字尋 - キャンセル', () => {
const sys = { __v0: { 'ダイアログキャンセル値': '' } }
const v0 = new Map([['ダイアログキャンセル値', '']])
const sys = { __v0: v0, __getSysVar: (key) => sys.__v0.get(key) }
chkprompt(['あいうえお', sys], null, 'あいうえお', '')
})
})
Expand Down

0 comments on commit 568ff32

Please sign in to comment.