Skip to content

Commit

Permalink
entity-store: normalize createEntityStore exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mpareja committed Oct 29, 2019
1 parent ac4ed78 commit 7360bee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion entity-store/entity-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { StreamName } = require('../message-store')

const m = (msg) => `entity-store create: ${msg}`

module.exports = (options) => {
exports.createEntityStore = (options) => {
validateOptions(options)

const {
Expand Down
4 changes: 3 additions & 1 deletion entity-store/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module.exports = require('./entity-store')
module.exports = {
...require('./entity-store')
}
2 changes: 1 addition & 1 deletion entity-store/test/create.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const createEntityStore = require('../entity-store')
const { createEntityStore } = require('../entity-store')
const { exampleCategory, exampleMessageStore } = require('../../message-store')
const { ExampleEntityClass } = require('../../entity-projection')

Expand Down
2 changes: 1 addition & 1 deletion entity-store/test/fetch-test-suite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const createEntityStore = require('../entity-store')
const createLog = require('../../test/test-log')
const { createEntityStore } = require('../entity-store')
const { createWriter } = require('../../messaging')
const { exampleCategory, exampleStreamName, StreamName } = require('../../message-store')
const { ExampleEntityClass, ExampleEntityProjection } = require('../../entity-projection')
Expand Down

0 comments on commit 7360bee

Please sign in to comment.