Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(reference): fix typo in dereference strategy name #2425

Merged
merged 1 commit into from
Dec 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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