-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tests): cleanup tests from devwork
- Loading branch information
Showing
17 changed files
with
113 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
|
Binary file modified
BIN
+173 Bytes
(100%)
...ion/iot-bar-chart/iot-bar-chart.spec.component.ts/bar chart -- renders.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/components/src/testing/mocks/mockGetAssetModelSummary.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { DescribeAssetModelResponse } from '@aws-sdk/client-iotsitewise'; | ||
|
||
export const mockGetAssetModelSummary = ( | ||
assetSummary: Partial<DescribeAssetModelResponse> = {} | ||
): DescribeAssetModelResponse => ({ | ||
assetModelId: 'some-asset-model-id', | ||
assetModelName: 'some-asset-model-name', | ||
assetModelDescription: undefined, | ||
assetModelCreationDate: undefined, | ||
assetModelLastUpdateDate: undefined, | ||
assetModelStatus: undefined, | ||
assetModelHierarchies: [], | ||
assetModelArn: undefined, | ||
assetModelProperties: [ | ||
{ | ||
dataType: 'DOUBLE', | ||
id: 'some-property-id', | ||
name: 'Asset Name', | ||
type: undefined, | ||
}, | ||
], | ||
...assetSummary, | ||
}); |
25 changes: 16 additions & 9 deletions
25
packages/components/src/testing/mocks/mockGetAssetSummaries.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
import { AssetSummary } from '@aws-sdk/client-iotsitewise'; | ||
import { DescribeAssetResponse } from '@aws-sdk/client-iotsitewise'; | ||
|
||
export const mockGetAssetSummary = (assetSummary: Partial<AssetSummary> = {}): AssetSummary => ({ | ||
id: 'some-asset-id', | ||
name: 'some-asset-summary-name', | ||
export const mockGetAssetSummary = (assetSummary: Partial<DescribeAssetResponse> = {}): DescribeAssetResponse => ({ | ||
assetId: 'some-asset-id', | ||
assetName: 'some-asset-summary-name', | ||
assetModelId: 'some-asset-model-id', | ||
creationDate: undefined, | ||
lastUpdateDate: undefined, | ||
status: undefined, | ||
hierarchies: [], | ||
arn: undefined, | ||
assetCreationDate: undefined, | ||
assetLastUpdateDate: undefined, | ||
assetStatus: undefined, | ||
assetHierarchies: [], | ||
assetArn: undefined, | ||
assetProperties: [ | ||
{ | ||
id: 'some-property-id', | ||
name: 'Asset Name', | ||
dataType: 'DOUBLE', | ||
}, | ||
], | ||
...assetSummary, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters