Repository: ViacomInc/data-point (js)

Issue:
Rename core/factory.js to core/core.js
<!--
Thanks for your interest in the project. We appreciate bugs filed and PRs submitted!
Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Please fill out this template with all the relevant information so we can
understand what's going on and fix the issue.
-->

- `data-point` version: N/A
- `node` version: N/A
- `npm` version: N/A

**Any relevant code**:

https://github.com/ViacomInc/data-point/blob/master/packages/data-point/lib/core/factory.js

**Problem description**:

This file is more than just a factory. It is the main file of the folder. It should be renamed to core.js

**Suggested solution**:


Rename file to core.js

Pull request:
refactor(data-point/core): core/factory.js -> core/core.js
<!--
Thanks for your interest in the project. We appreciate bugs filed and PRs submitted!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:  #145

<!-- Why are these changes necessary? -->
**Why**: closes #145

<!-- How were these changes implemented? -->
**How**: git mv + updating references to file

<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Documentation N/A
- [ ] Tests N/A
- [X] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added username to **all-contributors** list N/A

<!-- feel free to add additional comments -->


Patch:
diff --git a/packages/data-point/lib/core/index.js b/packages/data-point/lib/core/index.js
index 8dd1848..555f11b 100644
--- a/packages/data-point/lib/core/index.js
+++ b/packages/data-point/lib/core/index.js
@@ -1,5 +1,5 @@
 /* eslint global-require: 0 */
 
 module.exports = {
-  create: require('./factory').create
+  create: require('./core').create
 }


Test patch:
diff --git a/packages/data-point/lib/core/factory.js b/packages/data-point/lib/core/core.js
similarity index 100%
rename from packages/data-point/lib/core/factory.js
rename to packages/data-point/lib/core/core.js
diff --git a/packages/data-point/lib/core/core.test.js b/packages/data-point/lib/core/core.test.js
index aebfa35..eb973a0 100644
--- a/packages/data-point/lib/core/core.test.js
+++ b/packages/data-point/lib/core/core.test.js
@@ -2,7 +2,7 @@
 
 const _ = require('lodash')
 
-const coreFactory = require('./factory')
+const core = require('./core')
 
 const reducers = require('../../test/utils/reducers')
 const entities = require('../../test/definitions/entities')
@@ -10,7 +10,7 @@ const entities = require('../../test/definitions/entities')
 let instance
 
 beforeAll(() => {
-  instance = coreFactory.create({
+  instance = core.create({
     values: {
       v1: 'v1'
     },
@@ -50,7 +50,7 @@ describe('addEntityType', () => {
   }
 
   test('It should add single new entity type', () => {
-    const dataPoint = coreFactory.create()
+    const dataPoint = core.create()
 
     dataPoint.addEntityType('foo', createEntityFactory())
 
@@ -59,7 +59,7 @@ describe('addEntityType', () => {
   })
 
   test('It should add multiple entity types', () => {
-    const dataPoint = coreFactory.create()
+    const dataPoint = core.create()
 
     dataPoint.addEntityTypes({
       foo: createEntityFactory(),
diff --git a/packages/data-point/lib/core/transform.test.js b/packages/data-point/lib/core/transform.test.js
index d4ad043..14d85cc 100644
--- a/packages/data-point/lib/core/transform.test.js
+++ b/packages/data-point/lib/core/transform.test.js
@@ -1,6 +1,6 @@
 /* eslint-env jest */
 
-const coreFactory = require('./factory')
+const core = require('./core')
 
 const reducers = require('../../test/utils/reducers')
 const entities = require('../../test/definitions/entities')
@@ -11,7 +11,7 @@ const TestData = require('../../test/data.json')
 let dataPoint
 
 beforeAll(() => {
-  dataPoint = coreFactory.create({
+  dataPoint = core.create({
     values: {
       v1: 'v1'
     },