Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dprovodnikov committed Nov 19, 2018
1 parent 3b00ca9 commit dab135e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function createRegistry() {
};

const register = (units) => {
Object.entries(units).map(entry => registerUnit(...entry));
Object.keys(units).map(alias => registerUnit(alias, units[alias]));

return exposeRegistered();
}
Expand Down

0 comments on commit dab135e

Please sign in to comment.