From 7091352be23c4eff3a1fc6894f0ef78c0dd08b85 Mon Sep 17 00:00:00 2001 From: robonen Date: Thu, 2 May 2024 06:53:46 +0700 Subject: [PATCH] chore(packages/stdlib): update import statement to use single quotes in mapRange function, lowercase in test desciptions --- packages/stdlib/src/index.ts | 4 +++- packages/stdlib/src/math/mapRange/index.ts | 2 +- packages/stdlib/src/patterns/behavioral/pubsub/index.test.ts | 2 +- packages/stdlib/src/structs/stack/index.test.ts | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/stdlib/src/index.ts b/packages/stdlib/src/index.ts index e076937..58694d8 100644 --- a/packages/stdlib/src/index.ts +++ b/packages/stdlib/src/index.ts @@ -2,4 +2,6 @@ export * from './text'; export * from './math'; export * from './patterns'; export * from './bits'; -export * from './structs'; \ No newline at end of file +export * from './structs'; +export * from './arrays'; +export * from './types'; diff --git a/packages/stdlib/src/math/mapRange/index.ts b/packages/stdlib/src/math/mapRange/index.ts index f82dd41..e345155 100644 --- a/packages/stdlib/src/math/mapRange/index.ts +++ b/packages/stdlib/src/math/mapRange/index.ts @@ -1,4 +1,4 @@ -import { clamp } from "../clamp"; +import { clamp } from '../clamp'; /** * Map a value from one range to another diff --git a/packages/stdlib/src/patterns/behavioral/pubsub/index.test.ts b/packages/stdlib/src/patterns/behavioral/pubsub/index.test.ts index 629e23c..8a67b57 100644 --- a/packages/stdlib/src/patterns/behavioral/pubsub/index.test.ts +++ b/packages/stdlib/src/patterns/behavioral/pubsub/index.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect, beforeEach, vi } from 'vitest'; import { PubSub } from './index'; -describe('PubSub', () => { +describe('pubsub', () => { let eventBus: PubSub<{ event1: (arg: string) => void; event2: () => void diff --git a/packages/stdlib/src/structs/stack/index.test.ts b/packages/stdlib/src/structs/stack/index.test.ts index b66dab2..748cabe 100644 --- a/packages/stdlib/src/structs/stack/index.test.ts +++ b/packages/stdlib/src/structs/stack/index.test.ts @@ -1,7 +1,7 @@ import { describe, it, expect } from 'vitest'; import { Stack } from './index'; -describe('Stack', () => { +describe('stack', () => { describe('constructor', () => { it('create an empty stack if no initial values are provided', () => { const stack = new Stack();