mirror of
https://github.com/theoludwig/kysely-typegen.git
synced 2026-05-22 16:23:25 +02:00
chore: initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import assert from "node:assert/strict"
|
||||
import { describe, it } from "node:test"
|
||||
import { fn } from "../index.ts"
|
||||
|
||||
describe("index", () => {
|
||||
it('should return "Hello, tsdown!"', () => {
|
||||
// Arrange - Given
|
||||
const input = "tsdown"
|
||||
|
||||
// Act - When
|
||||
const output = fn(input)
|
||||
|
||||
// Assert - Then
|
||||
const expected = "Hello, tsdown!"
|
||||
assert.strictEqual(output, expected)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,3 @@
|
||||
export const fn = (input: string): string => {
|
||||
return `Hello, ${input}!`
|
||||
}
|
||||
Reference in New Issue
Block a user