Skip to content

Commit

Permalink
start adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Oct 23, 2024
1 parent 2c8c603 commit b5959ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/structures/stack.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import assert from 'node:assert'
import { test } from 'node:test'

void test('synchronous passing test', () => {
assert.strictEqual(1, 1)
})

void test('synchronous failing test', () => {
assert.strictEqual(1, 2)
})

void test('asynchronous passing test', () => {
assert.strictEqual(1, 1)
})

void test('asynchronous failing test', () => {
assert.strictEqual(1, 2)
})
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"include": [
".eslintrc.cjs",
"./src/**/*.ts",
"./test/**/*.ts",
"index.ts"
],
"compilerOptions": {
Expand Down

0 comments on commit b5959ca

Please sign in to comment.