Skip to content

Commit c3d3cdf

Browse files
committed
maybe fix prettier
1 parent 88c23d1 commit c3d3cdf

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

__test__/use-cases/test.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
exports.test = [
2-
{
3-
name: 'test',
4-
url: 'http://localhost:8000/remmoteEntry.js',
5-
path: '/Users/kylefahey/OCVIBE/module-federation/aegis/__test__/use-cases',
6-
type: 'model',
7-
importRemote: () => import('test/models'),
8-
},
9-
]
2+
{
3+
"name": "test",
4+
"url": "http://localhost:8000/remmoteEntry.js",
5+
"path": "/Users/kylefahey/OCVIBE/module-federation/aegis/__test__/use-cases",
6+
"type": "model"
7+
,
8+
importRemote: () => import("test/models")
9+
}
10+
]

src/adapters/datasources/datasource-meshlink.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import mlink, { sharedObject } from 'mesh-link'
44
import DataSource from '../../domain/datasource'
55

66
async function createSharedObject(name) {
7-
mlink.sharedObject.create({ name: { value: name }, modelId: { value: null } })
7+
mlink.sharedObject.create({
8+
name: { value: name },
9+
modelId: { value: null },
10+
})
811
}
912

1013
async function fetchSharedObject(name) {

src/domain/use-cases/find-related-models.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ export default async function fetchRelatedModels(model, relation) {
1313
const result = await async(model[relation]())
1414

1515
if (result.ok) {
16-
return { [model.getName()]: model, [relation.toUpperCase()]: result.data }
16+
return {
17+
[model.getName()]: model,
18+
[relation.toUpperCase()]: result.data,
19+
}
1720
}
1821
}
1922

0 commit comments

Comments
 (0)