Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes test due to change in error reporting in the platform.

  • Loading branch information...
commit 02b2ffd7ea863bae3c087c5980ee5677b0903b1c 1 parent 7b5a9da
@c4milo c4milo authored
Showing with 5 additions and 6 deletions.
  1. +5 −6 configuration/specs/apikey.spec.js
View
11 configuration/specs/apikey.spec.js
@@ -64,12 +64,11 @@ describe('ApiKey service', function(){
it('should return an error if key type is invalid', function(done) {
apikeyService.generate('invalid_type', function(err, key) {
- Array.isArray(err).should.be.eql(true);
- err[0].message.should.be.eql('Instance is not one of the possible '+
- 'values');
- err[0].attribute.should.be.eql('enum');
- err[0].details[0].should.be.eql('configuration');
- err[0].details[1].should.be.eql('participation');
+ var errors = err.errors;
+ Array.isArray(errors).should.be.eql(true);
+ errors[0].field.should.be.eql('type');
+ errors[0].description.should.be.eql('Instance is not one of the possible values: configuration,participation');
+ errors[0].code.should.be.eql('enum');
done();
});
});

0 comments on commit 02b2ffd

Please sign in to comment.
Something went wrong with that request. Please try again.