Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frantallukas10/primehammer-task

PrimeHammer-task
https://github.com/frantallukas10/primehammer-task

Last synced: 5 days ago
JSON representation

PrimeHammer-task

Awesome Lists containing this project

README

        

# PrimeHammer-task

[About task](./JavaScript-HW-Interview.pdf)

## Solution:

### main:

[index.js](./index.js)

[evaluateLogFile.js](./evaluateLogFile.js)

[package.json](./package.json)

### Helpers:

[getReference(check, thermometer, humidity)](./helpers/getReference.js)

[getResult(column, reference, values),isFirstLine(sensorType)](./helpers/getResult.js)

[getResultHumidity(reference, values)](./helpers/getResultHumidity.js)

[getResultThermometer(reference, values)](./helpers/getResultThermometer.js)

### Testing somthing module:

[testing module index.js](./tests/index.test.js)

[testing module getReference.js](./tests/getReference.test.js)

## Available Scripts

Before run this project, you have to install packages with this command:

### `npm i`

or

### `yarn install`

The project, you can run it with this command:

### `npm run start`

The testing this project, you can run it with this command:

### `npm run test`

See the section about [jest testing](https://jestjs.io/docs/en/getting-started) for more information.

if you want upadte snappshots, you can run this command:

### `npm run test-u`