Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Jul 31, 2023
1 parent 3f8d824 commit 2707275
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions test/ts2typebox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ export const expectEqualIgnoreFormatting = (input1: string, input2: string): voi
}

describe('ts2typebox - Typescript to Typebox', () => {
test('string', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = string`)
const expectedResult = `
test('string', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = string`)
const expectedResult = `
Expand All @@ -31,11 +28,6 @@ describe('ts2typebox - Typescript to Typebox', () => {
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('number', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = number`)
const expectedResult = `
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('number', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = number`)
const expectedResult = `
Expand All @@ -46,11 +38,6 @@ describe('ts2typebox - Typescript to Typebox', () => {
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('boolean', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = boolean`)
const expectedResult = `
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('boolean', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = boolean`)
const expectedResult = `
Expand All @@ -61,11 +48,6 @@ describe('ts2typebox - Typescript to Typebox', () => {
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('any', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = any`)
const expectedResult = `
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('any', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = any`)
const expectedResult = `
Expand All @@ -76,11 +58,6 @@ describe('ts2typebox - Typescript to Typebox', () => {
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('unknown', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = unknown`)
const expectedResult = `
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('unknown', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = unknown`)
const expectedResult = `
Expand Down Expand Up @@ -111,31 +88,6 @@ describe('ts2typebox - Typescript to Typebox', () => {
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('Array<string>', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = Array<string>`)
const expectedResult = `
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('never', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = never`)
const expectedResult = `
import { Type, Static } from "@sinclair/typebox";
type T = Static<typeof T>;
const T = Type.Never();
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('null', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = null`)
const expectedResult = `
import { Type, Static } from "@sinclair/typebox";
type T = Static<typeof T>;
const T = Type.Null();
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('Array<string>', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = Array<string>`)
const expectedResult = `
Expand All @@ -146,11 +98,6 @@ describe('ts2typebox - Typescript to Typebox', () => {
`
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('string[]', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = string[]`)
const expectedResult = `
expectEqualIgnoreFormatting(generatedTypebox, expectedResult)
})
test('string[]', () => {
const generatedTypebox = TypeScriptToTypeBox.Generate(`type T = string[]`)
const expectedResult = `
Expand Down

0 comments on commit 2707275

Please sign in to comment.