From b5959cad0d4710fbf64fa75b451ea9e216d00058 Mon Sep 17 00:00:00 2001 From: Dany Date: Wed, 23 Oct 2024 21:33:52 +0200 Subject: [PATCH] start adding tests --- test/structures/stack.test.ts | 18 ++++++++++++++++++ tsconfig.json | 1 + 2 files changed, 19 insertions(+) create mode 100644 test/structures/stack.test.ts diff --git a/test/structures/stack.test.ts b/test/structures/stack.test.ts new file mode 100644 index 0000000..1d3e548 --- /dev/null +++ b/test/structures/stack.test.ts @@ -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) +}) \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 3bd9b6a..c1258a3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "include": [ ".eslintrc.cjs", "./src/**/*.ts", + "./test/**/*.ts", "index.ts" ], "compilerOptions": {