Skip to content

Commit

Permalink
test(reference): fix typo in dereference strategy name
Browse files Browse the repository at this point in the history
Refs #2289
  • Loading branch information
char0n committed Dec 31, 2022
1 parent a5fe0da commit 7cbb344
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Callback Object', function () {
context('given in components/callbacks field', function () {
const fixturePath = path.join(rootFixturePath, 'components-callbacks');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Example Object', function () {
context('given single ExampleElement passed to dereferenceApiDOM', function () {
const fixturePath = path.join(__dirname, 'fixtures', 'external-value-json', 'root.json');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Example Object', function () {
context('given in components/examples field', function () {
const fixturePath = path.join(rootFixturePath, 'components-examples');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Header Object', function () {
context('given in components/headers field', function () {
const fixturePath = path.join(rootFixturePath, 'components-headers');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ import {
import { evaluate } from '@swagger-api/apidom-json-pointer';

import { parse, dereferenceApiDOM } from '../../../../../src';
import * as bootstrap from '../bootstrap';

describe('dereference', function () {
before(function () {
bootstrap.before();
});

after(function () {
bootstrap.after();
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Link Object', function () {
context('given single LinkElement passed to dereferenceApiDOM', function () {
const fixturePath = path.join(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Link Object', function () {
context('given in components/links field', function () {
const fixturePath = path.join(rootFixturePath, 'components-links');
Expand Down Expand Up @@ -200,7 +200,7 @@ describe('dereference', function () {
});

context('given operationId field', function () {
context('and OperationElement with operationId exists', async function () {
context('and OperationElement with operationId exists', function () {
const fixturePath = path.join(rootFixturePath, 'operation-id');
const rootFilePath = path.join(fixturePath, 'root.json');

Expand All @@ -226,7 +226,7 @@ describe('dereference', function () {
);
});

context("and OperationElement with operationId doesn't exist", async function () {
context("and OperationElement with operationId doesn't exist", function () {
const fixturePath = path.join(rootFixturePath, 'operation-id-non-existent');

specify('should throw error', async function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Parameter Object', function () {
context('given in components/parameters field', function () {
const fixturePath = path.join(rootFixturePath, 'components-parameters');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Path Item Object', function () {
context('given single PathItemElement passed to dereferenceApiDOM', function () {
const fixturePath = path.join(__dirname, 'fixtures', 'external-only', 'root.json');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Path Item Object', function () {
context('given in webhooks field', function () {
const fixturePath = path.join(rootFixturePath, 'webhooks');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Reference Object', function () {
context('given single ReferenceElement passed to dereferenceApiDOM', function () {
context('given dereferencing using local file system', function () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Reference Object', function () {
context('given Reference Objects pointing internally and externally', function () {
const fixturePath = path.join(rootFixturePath, 'internal-external');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Request Body Object', function () {
context('given in components/requestBodies field', function () {
const fixturePath = path.join(rootFixturePath, 'components-request-bodies');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Response Object', function () {
context('given in components/responses field', function () {
const fixturePath = path.join(rootFixturePath, 'components-responses');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Schema Object', function () {
context('given single SchemaElement passed to dereferenceApiDOM', function () {
const fixturePath = path.join(__dirname, 'fixtures', 'external-only', 'root.json');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Schema Object - $ref keyword from core vocabulary', function () {
context('given Schema Objects pointing internally and externally', function () {
const fixturePath = path.join(rootFixturePath, 'internal-external');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('dereference', function () {
});

context('strategies', function () {
context('openapi-3-1swagger-client', function () {
context('openapi-3-1-swagger-client', function () {
context('Security Scheme Object', function () {
context('given in components/securitySchemes field', function () {
const fixturePath = path.join(rootFixturePath, 'components-security-schemes');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ describe('dereference', function () {
});

context('given operationId field', function () {
context('and OperationElement with operationId exists', async function () {
context('and OperationElement with operationId exists', function () {
const fixturePath = path.join(rootFixturePath, 'operation-id');
const rootFilePath = path.join(fixturePath, 'root.json');

Expand All @@ -217,7 +217,7 @@ describe('dereference', function () {
);
});

context("and OperationElement with operationId doesn't exist", async function () {
context("and OperationElement with operationId doesn't exist", function () {
const fixturePath = path.join(rootFixturePath, 'operation-id-non-existent');

specify('should throw error', async function () {
Expand Down

0 comments on commit 7cbb344

Please sign in to comment.