@zeit/schemas
Advanced tools
Comparing version 2.34.0 to 2.35.0
{ | ||
"name": "@zeit/schemas", | ||
"version": "2.34.0", | ||
"version": "2.35.0", | ||
"description": "All schemas used for validation that are shared between our projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -349,2 +349,28 @@ /* eslint camelcase: 0 */ | ||
exports.test_recentsViewPreference_open_valid = () => { | ||
assert(ajv.validate(User, { recentsViewPreference: 'open' })); | ||
}; | ||
exports.test_recentsViewPreference_closed_valid = () => { | ||
assert(ajv.validate(User, { recentsViewPreference: 'closed' })); | ||
}; | ||
exports.test_recentsViewPreference_null_valid = () => { | ||
assert(ajv.validate(User, { recentsViewPreference: null })); | ||
}; | ||
exports.test_recentsViewPreference_invalid_value = () => { | ||
const isValid = ajv.validate(User, { | ||
recentsViewPreference: 'test' | ||
}); | ||
assert.equal(isValid, false); | ||
}; | ||
exports.test_recentsViewPreference_number_invalid = () => { | ||
const isValid = ajv.validate(User, { | ||
recentsViewPreference: 10 | ||
}); | ||
assert.equal(isValid, false); | ||
}; | ||
exports.test_remoteCaching_valid = () => { | ||
@@ -351,0 +377,0 @@ assert(ajv.validate(User, { remoteCaching: { enabled: true } })); |
@@ -85,3 +85,3 @@ const Username = { | ||
const FavoritesViewPreference = { | ||
const ToggleViewPreference = { | ||
oneOf: [ | ||
@@ -272,3 +272,4 @@ { | ||
viewPreference: ViewPreference, | ||
favoritesViewPreference: FavoritesViewPreference, | ||
favoritesViewPreference: ToggleViewPreference, | ||
recentsViewPreference: ToggleViewPreference, | ||
remoteCaching: RemoteCaching, | ||
@@ -295,4 +296,4 @@ dismissedToasts: DismissedToasts, | ||
ViewPreference, | ||
FavoritesViewPreference, | ||
ToggleViewPreference, | ||
DismissedToasts | ||
}; |
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
34046
1361