Skip to content

Commit 97c75b5

Browse files
committed
Merge pull request #190 from eddiemonge/fixtest
Fix failing relation name test
2 parents 81311b3 + 2aec87d commit 97c75b5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/helpers.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var validateRequiredName = helpers.validateRequiredName;
1212
var checkRelationName = helpers.checkRelationName;
1313
require('chai').should();
1414
var expect = require('chai').expect;
15+
var promise = require('bluebird');
1516

1617
describe('helpers', function() {
1718
describe('validateAppName()', function() {
@@ -113,7 +114,9 @@ function testRelationRejectsValue(modelDefinition, value) {
113114

114115
function ModelDefinition(propertyList) {
115116
this.propertyList = propertyList;
116-
this.properties = function(callback) {
117-
callback(null, this.propertyList);
117+
this.properties = {
118+
getAsync: function() {
119+
return promise.resolve(propertyList);
120+
}
118121
};
119122
}

0 commit comments

Comments
 (0)