Skip to content

Commit

Permalink
feat: added tests todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ariansobczak-rst committed Jan 18, 2022
1 parent 0bfe834 commit ce290e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion fixtures/interface.ts → fixtures/typescript/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export enum PropertyPlace {
/**
* JSON representation of a Property.
*/
type PropertyJSON = {
interface PropertyJSON {
/**
* If given property should be treated as a title
*/
Expand Down
9 changes: 1 addition & 8 deletions typescript/type-converter.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
const fs = require('fs')
const path = require('path')
const { expect } = require('chai')
const typeConverter = require('./type-converter')

const src = fs.readFileSync(path.join(__dirname, '../fixtures/typescript/entity.ts'), 'utf-8')

const interface1 = require('../fixtures/typescript/interface1')
const interface2 = require('../fixtures/typescript/interface2')
const interface3 = require('../fixtures/typescript/interface3')
Expand Down Expand Up @@ -98,8 +94,5 @@ describe('.typeConverter', function () {
})
})


// it.only('parses test', function() {
// console.log(typeConverter(src, '../fixtures/interface.ts'))
// })
// TODO: Provide tests for typescript
})

0 comments on commit ce290e9

Please sign in to comment.