Skip to content

Commit

Permalink
Merge pull request #40 from Quramy/fix-39
Browse files Browse the repository at this point in the history
fix #39
  • Loading branch information
Quramy authored Nov 1, 2017
2 parents 2cb403d + 2d4aba6 commit 75846f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dtsCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DtsContent {
}

get formatted() {
if(!this.resultList || !this.resultList.length) return 'export default {};';
if(!this.resultList || !this.resultList.length) return '';
return this.resultList.join(os.EOL);
}

Expand Down
2 changes: 1 addition & 1 deletion test/dtsCreator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('DtsContent', () => {

it('returns empty object exportion when the result list has no items', done => {
new DtsCreator().create('test/empty.css').then(content => {
assert.equal(content.formatted, "export default {};");
assert.equal(content.formatted, "");
done();
});
});
Expand Down

0 comments on commit 75846f3

Please sign in to comment.