-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ns-workflows-1): Add Workflows Spec Object
- Loading branch information
1 parent
fce4096
commit d7f0414
Showing
5 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...s-workflows-1/test/refractor/elements/WorkflowsSpecification1/__snapshots__/index.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`refractor elements WorkflowsSpecification1Element should refract to semantic ApiDOM tree 1`] = ` | ||
(WorkflowsSpecification1Element | ||
(MemberElement | ||
(StringElement) | ||
(StringElement)) | ||
(MemberElement | ||
(StringElement) | ||
(InfoElement)) | ||
(MemberElement | ||
(StringElement) | ||
(ArrayElement | ||
(SourceDescriptionElement))) | ||
(MemberElement | ||
(StringElement) | ||
(ArrayElement | ||
(ObjectElement))) | ||
(MemberElement | ||
(StringElement) | ||
(ComponentsElement))) | ||
`; |
22 changes: 22 additions & 0 deletions
22
packages/apidom-ns-workflows-1/test/refractor/elements/WorkflowsSpecification1/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { expect } from 'chai'; | ||
import { sexprs } from '@swagger-api/apidom-core'; | ||
|
||
import { WorkflowsSpecification1Element } from '../../../../src'; | ||
|
||
describe('refractor', function () { | ||
context('elements', function () { | ||
context('WorkflowsSpecification1Element', function () { | ||
specify('should refract to semantic ApiDOM tree', function () { | ||
const workflowsSpecification1Element = WorkflowsSpecification1Element.refract({ | ||
workflowsSpec: '1.0.0', | ||
info: {}, | ||
sourceDescriptions: [{}], | ||
workflows: [{}], | ||
components: {}, | ||
}); | ||
|
||
expect(sexprs(workflowsSpecification1Element)).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); | ||
}); |