Skip to content

Commit

Permalink
#3 increase coverage & fix detected bug inside DeleteCell
Browse files Browse the repository at this point in the history
  • Loading branch information
Pawel Siemienik committed Apr 19, 2020
1 parent a3a878c commit 62f536a
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/cell/DeleteCell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ export class DeleteCell extends BaseCell {
?.toString()
.split(' ')[2]; // todo make some function for scope.getCurrentTemplateValue()?.toString().split(' ') ;

if (target === undefined) {
return this;
} // it's ok here

scope.vm[target] = undefined;
if (target !== undefined) {
scope.vm[target] = undefined;
}

scope.setCurrentOutputValue(null);
scope.incrementCol();
Expand Down
Binary file modified tests/integration/data/Renderer003-WsName/expected.xlsx
Binary file not shown.
Binary file modified tests/integration/data/Renderer003-WsName/template.xlsx
Binary file not shown.
Binary file modified tests/integration/data/Renderer008-Delete/template.xlsx
Binary file not shown.

0 comments on commit 62f536a

Please sign in to comment.