Skip to content

Commit

Permalink
apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Nov 19, 2020
1 parent 0427ef2 commit 950dcdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions test/models/asyncapi_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('AsyncAPIDocument', function() {
expect(d.servers().test2.json()).to.equal(doc.servers.test2);
});

it('should return an empty object if the AsyncAPI document has not servers', function() {
it('should return an empty object if the AsyncAPI document has no defined servers', function() {
const doc = {};
const d = new AsyncAPIDocument(doc);
expect(typeof d.servers()).to.be.equal('object');
Expand All @@ -73,7 +73,7 @@ describe('AsyncAPIDocument', function() {
expect(d.serverNames()).to.deep.equal(['test1', 'test2']);
});

it('should return an empty array if the AsyncAPI document has not servers', function() {
it('should return an empty array if the AsyncAPI document has no defined servers', function() {
const doc = {};
const d = new AsyncAPIDocument(doc);
expect(Array.isArray(d.serverNames())).to.be.equal(true);
Expand Down Expand Up @@ -152,7 +152,7 @@ describe('AsyncAPIDocument', function() {
expect(d.channels().test2.json()).to.equal(doc.channels.test2);
});

it('should return an empty object if the AsyncAPI document has not channels', function() {
it('should return an empty object if the AsyncAPI document has no defined channels', function() {
const doc = {};
const d = new AsyncAPIDocument(doc);
expect(typeof d.channels()).to.be.equal('object');
Expand All @@ -168,7 +168,7 @@ describe('AsyncAPIDocument', function() {
expect(d.channelNames()).to.deep.equal(['test1', 'test2']);
});

it('should return an empty array if the AsyncAPI document has not channels', function() {
it('should return an empty array if the AsyncAPI document has no defined channels', function() {
const doc = {};
const d = new AsyncAPIDocument(doc);
expect(Array.isArray(d.channelNames())).to.be.equal(true);
Expand Down
14 changes: 7 additions & 7 deletions test/models/components_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Components', function() {
expect(d.messages().test2.json()).to.equal(doc.messages.test2);
});

it('should return an empty object if the components field has not messages', function() {
it('should return an empty object if the components field has no defined messages', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.messages()).to.be.equal('object');
Expand Down Expand Up @@ -67,7 +67,7 @@ describe('Components', function() {
expect(d.schemas().test2.json()).to.equal(doc.schemas.test2);
});

it('should return an empty object if the components field has not schemas', function() {
it('should return an empty object if the components field has no defined schemas', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.schemas()).to.be.equal('object');
Expand Down Expand Up @@ -118,7 +118,7 @@ describe('Components', function() {
expect(d.securitySchemes().test2.json()).to.equal(doc.securitySchemes.test2);
});

it('should return an empty object if the components field has not securitySchemes', function() {
it('should return an empty object if the components field has no defined securitySchemes', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.securitySchemes()).to.be.equal('object');
Expand Down Expand Up @@ -169,7 +169,7 @@ describe('Components', function() {
expect(d.parameters().test2.json()).to.equal(doc.parameters.test2);
});

it('should return an empty object if the components field has not parameters', function() {
it('should return an empty object if the components field has no defined parameters', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.parameters()).to.be.equal('object');
Expand Down Expand Up @@ -220,7 +220,7 @@ describe('Components', function() {
expect(d.correlationIds().test2.json()).to.equal(doc.correlationIds.test2);
});

it('should return an empty object if the components field has not correlationIds', function() {
it('should return an empty object if the components field has no defined correlationIds', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.correlationIds()).to.be.equal('object');
Expand Down Expand Up @@ -271,7 +271,7 @@ describe('Components', function() {
expect(d.operationTraits().test2.json()).to.equal(doc.operationTraits.test2);
});

it('should return an empty object if the components field has not operationTraits', function() {
it('should return an empty object if the components field has no defined operationTraits', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.operationTraits()).to.be.equal('object');
Expand Down Expand Up @@ -322,7 +322,7 @@ describe('Components', function() {
expect(d.messageTraits().test2.json()).to.equal(doc.messageTraits.test2);
});

it('should return an empty object if the components field has not messageTraits', function() {
it('should return an empty object if the components field has no defined messageTraits', function() {
const doc = {};
const d = new Components(doc);
expect(typeof d.messageTraits()).to.be.equal('object');
Expand Down

0 comments on commit 950dcdd

Please sign in to comment.