test: coverage

This commit is contained in:
Evan You
2019-08-27 14:42:05 -04:00
parent 7ecdc79d5e
commit 62e07a1b7e
5 changed files with 40 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ export function inject(key: InjectionKey<any> | string, defaultValue?: any) {
} else if (defaultValue !== undefined) {
return defaultValue
} else if (__DEV__) {
warn(`injection ${key} not found.`)
warn(`injection "${key}" not found.`)
}
}
}

View File

@@ -1,3 +1,4 @@
export function warn(...args: any[]) {
// TODO
console.warn(...args)
}