Skip to content

Commit cede522

Browse files
committed
Fix test error check text.
1 parent 09cb961 commit cede522

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/mocha/10-api.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('bedrock-profile-http', () => {
126126
result.status.should.equal(400);
127127
result.ok.should.equal(false);
128128
result.data.message.should.equal(
129-
'A validation error occured in the \'Account Query\' validator.');
129+
'A validation error occurred in the \'Account Query\' validator.');
130130
});
131131
it('throws error when account is not authorized', async () => {
132132
let result;
@@ -182,7 +182,7 @@ describe('bedrock-profile-http', () => {
182182
result.status.should.equal(400);
183183
result.ok.should.equal(false);
184184
result.data.message.should.equal(
185-
'A validation error occured in the \'Profile Agent\' validator.');
185+
'A validation error occurred in the \'Profile Agent\' validator.');
186186
});
187187
it('throws error when account is not authorized', async () => {
188188
const profile = 'did:example:1234';
@@ -365,7 +365,7 @@ describe('bedrock-profile-http', () => {
365365
result.status.should.equal(400);
366366
result.ok.should.equal(false);
367367
result.data.message.should.equal(
368-
'A validation error occured in the \'Account Query\' validator.');
368+
'A validation error occurred in the \'Account Query\' validator.');
369369
});
370370
it('throws error when account is not authorized', async () => {
371371
const {account: {id: account}} = accounts['alpha@example.com'];
@@ -448,7 +448,7 @@ describe('bedrock-profile-http', () => {
448448
result.status.should.equal(400);
449449
result.ok.should.equal(false);
450450
result.data.message.should.equal(
451-
'A validation error occured in the \'Account Query\' validator.');
451+
'A validation error occurred in the \'Account Query\' validator.');
452452
});
453453
it('throws error when account is not authorized', async () => {
454454
const {account: {id: account}} = accounts['alpha@example.com'];
@@ -536,7 +536,8 @@ describe('bedrock-profile-http', () => {
536536
result.status.should.equal(400);
537537
result.ok.should.equal(false);
538538
result.data.message.should.equal(
539-
'A validation error occured in the \'Delegate Capability\' validator.');
539+
'A validation error occurred in the \'Delegate Capability\' ' +
540+
'validator.');
540541
});
541542
it('throws error when there is no controller', async () => {
542543
const {account: {id: account}} = accounts['alpha@example.com'];
@@ -562,7 +563,8 @@ describe('bedrock-profile-http', () => {
562563
result.status.should.equal(400);
563564
result.ok.should.equal(false);
564565
result.data.message.should.equal(
565-
'A validation error occured in the \'Delegate Capability\' validator.');
566+
'A validation error occurred in the \'Delegate Capability\' ' +
567+
'validator.');
566568
});
567569
it('throws error when account is not authorized', async () => {
568570
const {account: {id: account}} = accounts['alpha@example.com'];
@@ -704,7 +706,7 @@ describe('bedrock-profile-http', () => {
704706
result.status.should.equal(400);
705707
result.ok.should.equal(false);
706708
result.data.message.should.equal(
707-
'A validation error occured in the \'zcaps\' validator.');
709+
'A validation error occurred in the \'zcaps\' validator.');
708710
});
709711
it('throws error when account is not authorized', async () => {
710712
const {account: {id: account}} = accounts['alpha@example.com'];

0 commit comments

Comments
 (0)