8000 Initial index and spec · Codermar/openapi-editor@7ab38fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ab38fc

Browse files
committed
Initial index and spec
1 parent 2791808 commit 7ab38fc

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/index.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { name, edit } from './index';
2+
import { expect } from 'chai';
3+
import 'mocha';
4+
5+
describe('OpenApi Editor', () => {
6+
7+
it('It should return openapi-editor', () => {
8+
expect(name).to.equal('openapi-editor');
9+
});
10+
11+
it('It Should expect edit to be function', () => {
12+
expect(typeof edit).to.equals('function');
13+
});
14+
});

src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* index.ts
3+
*
4+
* OpenAPI Editor
5+
*/
6+
7+
export const edit = (options: object): void => {
8+
console.log('*** OpenAPI Editor Options:', options);
9+
};

0 commit comments

Comments
 (0)
0