Skip to content

Commit

Permalink
refactoring source code and folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelgsouza committed Oct 28, 2019
1 parent a0f3751 commit 6d854d2
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 10 deletions.
3 changes: 0 additions & 3 deletions lib/index.js

This file was deleted.

3 changes: 3 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { default as calculate } from './lib/calculate'
export { default as ideialWeight } from './lib/ideial-weight'
export { default as loadCategory } from './lib/load-category'
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/utils/ideial-weight.js → src/lib/ideial-weight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as GENRES from './genres'
import * as GENRES from '../utils/genres'
import { isNumber, isEmpty, includes } from 'lodash'

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/utils/load-category.js → src/lib/load-category.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { isNumber, isEmpty } from 'lodash-es'

import loadIndex from './load-index'
import messages from './messages'
import isValidGenre from './is-valid-genre'
import loadIndex from '../utils/load-index'
import messages from '../utils/messages'
import isValidGenre from '../utils/is-valid-genre'

/**
* @method loadCategory
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/calculate.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { calculate } from '../lib'
import { calculate } from '../src'

describe('testing calculate function', () => {
it('calculate(0, 0) should be 0', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/ideial-weight.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ideialWeight } from '../lib'
import { ideialWeight } from '../src'

describe('testing ideialWeight function', () => {
it('ideialWeight(0, "") should be { min: 0, max: 0 }', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/load-category.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { loadCategory } from '../lib'
import { loadCategory } from '../src'

describe('testing loadCategory function', () => {
it("loadCategory() should be a empty string ''", () => {
Expand Down

0 comments on commit 6d854d2

Please sign in to comment.