Skip to content

Commit

Permalink
npm outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Thorup committed Jan 15, 2020
1 parent e011bc8 commit da02c21
Show file tree
Hide file tree
Showing 11 changed files with 2,091 additions and 1,384 deletions.
30 changes: 10 additions & 20 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,15 @@ this.dataWithoutMetadata[source].orderItem[0].should.deep.equal({
customer: { value: 'irma' },
product: { value: 'apple' },
quantity: { value: '200' },
price: { expect: '12.75' }});
```

should not trim white space.

```js
this.data[source].customer['irma']['name'].value.should.equal('Irma ');
price: { expect: '12.75' }
});
```

should trim white space, but not remove spaces.

```js
this.trimmedData[source].customer['irma']['name'].value.should.equal('Irma');
this.trimmedData[source].customer['netto']['name'].value.should.equal('Døgn Netto');
this.data[source].customer['irma']['name'].value.should.equal('Irma');
this.data[source].customer['netto']['name'].value.should.equal('Døgn Netto');
```

<a name="sheet-reader-when-created-from-object"></a>
Expand Down Expand Up @@ -227,20 +222,15 @@ this.dataWithoutMetadata[source].orderItem[0].should.deep.equal({
customer: { value: 'irma' },
product: { value: 'apple' },
quantity: { value: '200' },
price: { expect: '12.75' }});
```

should not trim white space.

```js
this.data[source].customer['irma']['name'].value.should.equal('Irma ');
price: { expect: '12.75' }
});
```

should trim white space, but not remove spaces.

```js
this.trimmedData[source].customer['irma']['name'].value.should.equal('Irma');
this.trimmedData[source].customer['netto']['name'].value.should.equal('Døgn Netto');
this.data[source].customer['irma']['name'].value.should.equal('Irma');
this.data[source].customer['netto']['name'].value.should.equal('Døgn Netto');
```

<a name="sheet-reader-error-handling"></a>
Expand All @@ -259,7 +249,7 @@ this.timeout(30000); // Note: the xlsx module takes a long time to parse this sm
should do just fine.

```js
const file = sheetReader.readFile('test/data/worse.xlsx', {trim: true});
file.should.deep.equal({content: {}});
const file = sheetReader.readFile('test/data/worse.xlsx');
file.should.deep.equal({ content: {} });
```

0 comments on commit da02c21

Please sign in to comment.