优化
This commit is contained in:
@@ -65,6 +65,13 @@ test('unsaved registrations use instance ownership so stale cached views cannot
|
||||
assert.match(unsavedSource, /store\.remove\(options\.key, owner\)/)
|
||||
})
|
||||
|
||||
test('unsaved registration only tracks the dirty ref and cannot subscribe to its own store writes', () => {
|
||||
assert.match(unsavedSource, /watch\(options\.dirty, \(dirty\) =>/)
|
||||
assert.match(unsavedSource, /\}, \{ immediate: true \}\)/)
|
||||
assert.doesNotMatch(unsavedSource, /watchEffect/)
|
||||
assert.match(unsavedSource, /current\.routeKey === entry\.routeKey[\s\S]*current\.dirty === entry\.dirty\) return/)
|
||||
})
|
||||
|
||||
test('the tab strip keeps touch targets and horizontal navigation usable on narrow screens', () => {
|
||||
assert.match(tabStyles, /overflow-x: auto/)
|
||||
assert.match(tabStyles, /scrollbar-width: none/)
|
||||
|
||||
Reference in New Issue
Block a user