Skip to content

Commit 4e9ae60

Browse files
author
Cristobal Contreras Rubio
committed
THELMABIOTEL-TBLIVE: v1.0.1 removing unnecessary imports
1 parent 937ce27 commit 4e9ae60

4 files changed

Lines changed: 8 additions & 75 deletions

File tree

packages/thelmabiotel-tblive/package-lock.json

Lines changed: 0 additions & 66 deletions
This file was deleted.

packages/thelmabiotel-tblive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@coremarine/thelmabiotel-tblive",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Library to work with Thlema Biotel TB-Lives hydrophones",
55
"author": "CoreMarine",
66
"license": "MIT",

packages/thelmabiotel-tblive/src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { ValibotValidator } from '@schemasjs/validator'
21
import { EMITTER_ANGLE_AVERAGE_BIT_LENGTH, EMITTER_ANGLE_AVERAGE_FACTOR, EMITTER_ANGLE_DEVIATION_FACTOR } from './constants'
32

43
export const getLineAngle = (data: number): { raw: number, average: { raw: number, degrees: number }, deviation: { raw: number, degrees: number } } => {

packages/thelmabiotel-tblive/tests/listening.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { describe, expect, test } from 'vitest'
22
import { PING_END, PING_START } from '../src/constants'
33
import { parseClockRound, parseClockSet, parseListening, parsePing } from '../src/listening'
4-
import type { Timestamp, RParsedSentence } from '../src/types'
4+
import type { Timestamp, ParsedSentence } from '../src/types'
55

66
const timestamp: Timestamp = Date.now()
77

88
describe('parsePing', () => {
99
test('happy path - valid serial number', () => {
1010
const input = `${PING_START}123456 ${PING_END}`
1111
const result = parsePing(input, timestamp)
12-
const expected: RParsedSentence = {
12+
const expected: ParsedSentence = {
1313
raw: input,
1414
id: 'ping',
1515
firmware: '1.0.2',
@@ -30,7 +30,7 @@ describe('parsePing', () => {
3030
test('invalid serial number - not a number', () => {
3131
const input = `${PING_START}12345a${PING_END}`
3232
const result = parsePing(input, timestamp)
33-
const expected: RParsedSentence = {
33+
const expected: ParsedSentence = {
3434
raw: input,
3535
id: 'ping',
3636
firmware: '1.0.2',
@@ -55,7 +55,7 @@ describe('parsePing', () => {
5555
test('invalid serial number - negative number', () => {
5656
const input = `${PING_START}-123456${PING_END}`
5757
const result = parsePing(input, timestamp)
58-
const expected: RParsedSentence = {
58+
const expected: ParsedSentence = {
5959
raw: input,
6060
id: 'ping',
6161
firmware: '1.0.2',
@@ -82,7 +82,7 @@ describe('parseClockRound', () => {
8282
test('happy path', () => {
8383
const input = 'ack01\r'
8484
const result = parseClockRound(input, timestamp)
85-
const expected: RParsedSentence = {
85+
const expected: ParsedSentence = {
8686
raw: input,
8787
id: 'clock round',
8888
firmware: '1.0.2',
@@ -104,7 +104,7 @@ describe('parseClockSet', () => {
104104
test('happy path', () => {
105105
const input = 'ack02\r'
106106
const result = parseClockSet(input, timestamp)
107-
const expected: RParsedSentence = {
107+
const expected: ParsedSentence = {
108108
raw: input,
109109
id: 'clock set',
110110
firmware: '1.0.2',
@@ -126,7 +126,7 @@ describe('parseListening', () => {
126126
test('happy path', () => {
127127
const input = 'EX!'
128128
const result = parseListening(input, timestamp)
129-
const expected: RParsedSentence = {
129+
const expected: ParsedSentence = {
130130
raw: input,
131131
id: 'listening',
132132
firmware: '1.0.2',

0 commit comments

Comments
 (0)