Skip to content

Commit

Permalink
feat(core,source-iotsitewise)!: Change time series data modules getRe…
Browse files Browse the repository at this point in the history
…questsFromQueries to be async

Fix various eslint errors on existing code
  • Loading branch information
diehbria committed Sep 2, 2022
1 parent 542add6 commit 69a017e
Show file tree
Hide file tree
Showing 19 changed files with 170 additions and 82 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"fix:eslint": "eslint --fix --ext .js,.ts,.tsx .",
"fix:stylelint": "stylelint '**/*.css' --fix",
"test": "npm-run-all -p test:unit test:eslint test:stylelint test:git",
"test:eslint": "eslint --ext .js,.ts,.tsx . --max-warnings=47",
"test:eslint": "eslint --ext .js,.ts,.tsx . --max-warnings=37",
"test:stylelint": "stylelint '**/*.css' --max-warnings 0",
"test:unit": "lerna run test --stream --concurrency 1",
"test:git": "git diff --exit-code",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/__mocks__/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export const createMockSiteWiseDataSource = (
}
),
getRequestsFromQuery: ({ query }) =>
query.assets
Promise.resolve(query.assets
.map(({ assetId, properties }) =>
properties.map(({ propertyId, refId }) => ({
id: toDataStreamId({ assetId, propertyId }),
refId,
resolution: '0',
}))
)
.flat(),
.flat()),
});

0 comments on commit 69a017e

Please sign in to comment.