Fixed failing tests
This commit is contained in:
@@ -6,7 +6,7 @@ import { assertViewPermission } from '/imports/api/creature/creatures/creaturePe
|
||||
let schema = new SimpleSchema({
|
||||
creatureId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ Meteor.publish('library', function (libraryId) {
|
||||
let libraryIdSchema = new SimpleSchema({
|
||||
libraryId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -254,7 +254,7 @@ Meteor.publish('libraryNodes', function (libraryId, extraFields) {
|
||||
const nodeIdSchema = new SimpleSchema({
|
||||
libraryNodeId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import EngineActions from '/imports/api/engine/action/EngineActions';
|
||||
let schema = new SimpleSchema({
|
||||
creatureId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ let userIdsSchema = new SimpleSchema({
|
||||
},
|
||||
'ids.$': {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ JsonRoutes.add('get', 'api/creature/:id', function (req, res) {
|
||||
new SimpleSchema({
|
||||
creatureId: {
|
||||
type: String,
|
||||
regEx: SimpleSchema.RegEx.Id,
|
||||
max: 32,
|
||||
},
|
||||
}).validate({ creatureId });
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user