diff --git a/packages/schema/test/index.js b/packages/schema/test/index.js index 86903c839..6cf0c791c 100644 --- a/packages/schema/test/index.js +++ b/packages/schema/test/index.js @@ -288,8 +288,8 @@ describe('app', () => { const [error] = results.errors; error.name.should.equal('sensitive'); - error.message.should.equal( - 'Cannot set isSafe=true for the sensitive key "password".', + error.stack.should.eql( + 'instance.authentication.fields[0] cannot set isSafe as true for the sensitive key "password".', ); }); });