@vue/shared
Advanced tools
Comparing version 3.0.0-alpha.8 to 3.0.0-alpha.9
@@ -80,3 +80,4 @@ 'use strict'; | ||
function mockWarn() { | ||
const mockError = () => mockWarn(true); | ||
function mockWarn(asError = false) { | ||
expect.extend({ | ||
@@ -143,3 +144,3 @@ toHaveBeenWarned(received) { | ||
asserted.clear(); | ||
warn = jest.spyOn(console, 'warn'); | ||
warn = jest.spyOn(console, asError ? 'error' : 'warn'); | ||
warn.mockImplementation(() => { }); | ||
@@ -477,2 +478,3 @@ }); | ||
exports.makeMap = makeMap; | ||
exports.mockError = mockError; | ||
exports.mockWarn = mockWarn; | ||
@@ -479,0 +481,0 @@ exports.normalizeClass = normalizeClass; |
@@ -80,3 +80,4 @@ 'use strict'; | ||
function mockWarn() { | ||
const mockError = () => mockWarn(true); | ||
function mockWarn(asError = false) { | ||
expect.extend({ | ||
@@ -143,3 +144,3 @@ toHaveBeenWarned(received) { | ||
asserted.clear(); | ||
warn = jest.spyOn(console, 'warn'); | ||
warn = jest.spyOn(console, asError ? 'error' : 'warn'); | ||
warn.mockImplementation(() => { }); | ||
@@ -476,2 +477,3 @@ }); | ||
exports.makeMap = makeMap; | ||
exports.mockError = mockError; | ||
exports.mockWarn = mockWarn; | ||
@@ -478,0 +480,0 @@ exports.normalizeClass = normalizeClass; |
@@ -64,4 +64,6 @@ | ||
export declare function mockWarn(): void; | ||
export declare const mockError: () => void; | ||
export declare function mockWarn(asError?: boolean): void; | ||
/** | ||
@@ -68,0 +70,0 @@ * Always return false. |
@@ -76,3 +76,4 @@ // Make a map and return a function for checking if a key | ||
function mockWarn() { | ||
const mockError = () => mockWarn(true); | ||
function mockWarn(asError = false) { | ||
expect.extend({ | ||
@@ -139,3 +140,3 @@ toHaveBeenWarned(received) { | ||
asserted.clear(); | ||
warn = jest.spyOn(console, 'warn'); | ||
warn = jest.spyOn(console, asError ? 'error' : 'warn'); | ||
warn.mockImplementation(() => { }); | ||
@@ -441,2 +442,2 @@ }); | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, escapeHtml, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isHTMLTag, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockWarn, normalizeClass, normalizeStyle, objectToString, propsToAttrMap, remove, stringifyStyle, toDisplayString, toRawType, toTypeString }; | ||
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, camelize, capitalize, escapeHtml, extend, generateCodeFrame, hasChanged, hasOwn, hyphenate, isArray, isBooleanAttr, isFunction, isGloballyWhitelisted, isHTMLTag, isNoUnitNumericStyleProp, isObject, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, mockError, mockWarn, normalizeClass, normalizeStyle, objectToString, propsToAttrMap, remove, stringifyStyle, toDisplayString, toRawType, toTypeString }; |
{ | ||
"name": "@vue/shared", | ||
"version": "3.0.0-alpha.8", | ||
"version": "3.0.0-alpha.9", | ||
"description": "internal utils shared across @vue packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58362
1462