Skip to content

Commit

Permalink
Add Filesize to the exported Handy model
Browse files Browse the repository at this point in the history
  • Loading branch information
negativetwelve committed Sep 2, 2017
1 parent a518f45 commit c2c6a37
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/handy-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build"
],
"dependencies": {
"handy-datetime": "^1.0.5"
"handy-datetime": "^1.0.5",
"handy-filesize": "^1.1.0"
},
"scripts": {
"build": "babel src --out-dir build --ignore '**/*.spec.js'",
Expand Down
2 changes: 2 additions & 0 deletions packages/handy-js/src/Handy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// Handy
import Datetime from 'handy-datetime';
import Filesize from 'handy-filesize';


// Export as module.exports so we can import the entire object at once in
// ES6 environments but still allows destructuring.
module.exports = {
Datetime,
Filesize,
};
6 changes: 6 additions & 0 deletions packages/handy-js/src/__tests__/Handy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ describe('Handy', () => {
expect(Handy.Datetime).toBeDefined();
});
});

describe('Filesize', () => {
it('should exist', () => {
expect(Handy.Filesize).toBeDefined();
});
});
});

0 comments on commit c2c6a37

Please sign in to comment.