Skip to content

Commit b1c71e6

Browse files
author
Brian Romanko
committed
Support for 'point' type as a property
1 parent 3a2b196 commit b1c71e6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/Property.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ exports.normalize = function (prop, Settings) {
3030
prop = { type: "enum", values: prop };
3131
}
3232

33-
if ([ "text", "number", "boolean", "date", "enum", "object", "binary" ].indexOf(prop.type) == -1) {
33+
if ([ "text", "number", "boolean", "date", "enum", "object", "binary", "point" ].indexOf(prop.type) == -1) {
3434
throw ErrorCodes.generateError(ErrorCodes.NO_SUPPORT, "Unknown property type: " + prop.type);
3535
}
3636

test/integration2/property.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ describe("Property", function () {
6161

6262
return done();
6363
});
64+
it("should accept: 'point'", function(done) {
65+
Property.normalize("point", ORM.settings).type.should.equal("point");
66+
67+
return done();
68+
});
6469

6570
describe("if not valid", function () {
6671
it("should throw", function (done) {

0 commit comments

Comments
 (0)