refactor: applyDirectives -> withDirectives

This commit is contained in:
Evan You
2019-10-18 16:35:01 -04:00
parent cba34453db
commit e98a85f3cb
20 changed files with 63 additions and 64 deletions

View File

@@ -8,7 +8,7 @@ import {
inject,
resolveComponent,
resolveDirective,
applyDirectives,
withDirectives,
Plugin,
ref,
getCurrentInstance
@@ -128,7 +128,7 @@ describe('api: createApp', () => {
return () => {
// resolve in render
const BarBaz = resolveDirective('bar-baz')!
return applyDirectives(h('div'), [[FooBar], [BarBaz]])
return withDirectives(h('div'), [[FooBar], [BarBaz]])
}
}
}