From 5623b9ac63fa31a38fc679936795d59b8383bc71 Mon Sep 17 00:00:00 2001 From: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> Date: Sun, 22 Sep 2024 22:19:18 +0300 Subject: [PATCH] refactor: specs and index --- specs/send-message.spec.ts | 8 ++++---- src/{app.ts => index.ts} | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename src/{app.ts => index.ts} (100%) diff --git a/specs/send-message.spec.ts b/specs/send-message.spec.ts index c316569..8aa1465 100644 --- a/specs/send-message.spec.ts +++ b/specs/send-message.spec.ts @@ -2,10 +2,10 @@ import { describe, expect, test as spec } from 'bun:test'; import { sendMessage } from '#index'; -describe('Send Message', () => { - spec('Hello!', async () => { - return await sendMessage('Hello!').then((parameter) => { - expect(parameter).toEqual('Hello!'); +describe('Send Message', async () => { + spec('should return "Hello!"', async () => { + await sendMessage('Hello!').then((string) => { + expect(string).toEqual('Hello!'); }); }); }); diff --git a/src/app.ts b/src/index.ts similarity index 100% rename from src/app.ts rename to src/index.ts