✅ test: 覆盖弹窗生命周期、存储合并与插件页的时长选项
This commit is contained in:
@@ -137,6 +137,8 @@ test('applying the plugin registers its three seats without touching the DOM', (
|
||||
assert.equal(typeof configProps.testAny, 'function')
|
||||
assert.equal(typeof configProps.testSystem, 'function')
|
||||
assert.equal(typeof configProps.setKind, 'function')
|
||||
assert.equal(typeof configProps.setDismiss, 'function')
|
||||
assert.equal(configProps.store.getSnapshot().dismissAfterMs, 6000, 'a browser with no stored choice gets the shipped lifetime')
|
||||
assert.equal(configProps.replayCount(), 0)
|
||||
// No locale service in this fake context, so the plugin's own translator falls
|
||||
// back to its English dictionary.
|
||||
|
||||
Reference in New Issue
Block a user