2.1.0 • Published 3 years ago

dataproofer-info-suite v2.1.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
3 years ago

suite-template

A template to write data checks for the Dataproofer desktop app or any JavaScript application.

Table of Contents

Tests

numberOfRows.js

src/numberOfRows.js:12-22

Count and display the number of rows

Parameters

  • rows Array an array of objects representing rows in the spreadsheet
  • columnHeads Array an array of strings for column names of the spreadsheet

Returns Object describing the result

columnsContainNumbers.js

src/columnsContainNumbers.js:16-66

Determine the percentage of rows that are numbers for each column

Parameters

  • rows Array an array of objects representing rows in the spreadsheet
  • columnHeads Array an array of strings for column names of the spreadsheet

Returns Object describing the result

columnsContainNothing.js

src/columnsContainNothing.js:16-67

Calculates the percentage of rows that are empty for each column

Parameters

  • rows Array an array of objects representing rows in the spreadsheet
  • columnHeads Array an array of strings for column names of the spreadsheet

Returns Object describing the result

Development

Getting Started

git clone git@github.com:dataproofer/info-suite.git
cd info-suite
npm install

Writing Tests

Building Docs

We use documentation.js, but have created a handy script for regenerating documentation.

npm run docs

Then open up and check your docs in DOCUMENTATION.md