@bluedot-innovation/models 7.5.0 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -102,18 +102,4 @@ testCase('Account', () => {
|
|
|
102
102
|
})
|
|
103
103
|
})
|
|
104
104
|
})
|
|
105
|
-
|
|
106
|
-
testCase('Configure userToken length', () => {
|
|
107
|
-
assertions('should throw error when modifying userToken length with Screens feature disabled', (done) => {
|
|
108
|
-
account.features.screens.enabled = false
|
|
109
|
-
let Account = new AccountModel(account)
|
|
110
|
-
|
|
111
|
-
Account.validate((err, res) => {
|
|
112
|
-
assert.notExists(res)
|
|
113
|
-
assert.exists(err, 'Screens feature needs to be enabled to modify this configuration')
|
|
114
|
-
done()
|
|
115
|
-
})
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
})
|
|
119
105
|
})
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ function validateScreensFeatureState() {
|
|
|
7
7
|
|
|
8
8
|
let AccountScreensSchema = new mongoose.Schema({
|
|
9
9
|
enabled: {type: Boolean},
|
|
10
|
-
configuration:
|
|
10
|
+
configuration: HelloConfigurationSchema
|
|
11
11
|
}, {
|
|
12
12
|
_id: false
|
|
13
13
|
})
|