-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78e319c
commit b196afa
Showing
23 changed files
with
284 additions
and
129 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
import React from "react"; | ||
import { shallow } from "enzyme"; | ||
import { MyAsset, MyAssetInfo } from "./MyAsset"; | ||
import { parcel } from "@helpers/testHelpers"; | ||
import { parcel, parcelUserAction } from "@helpers/testHelpers"; | ||
|
||
describe("MyAsset", () => { | ||
it("renders the component", async () => { | ||
expect(shallow(<MyAsset asset={parcel} />)).toMatchSnapshot(); | ||
const asset = parcel; | ||
const userAction = parcelUserAction; | ||
|
||
expect( | ||
shallow(<MyAsset asset={asset} userAction={userAction} />) | ||
).toMatchSnapshot(); | ||
}); | ||
|
||
describe("MyAssetInfo", () => { | ||
it("renders the component", async () => { | ||
expect(shallow(<MyAssetInfo asset={parcel} />)).toMatchSnapshot(); | ||
const asset = parcel; | ||
const userAction = parcelUserAction; | ||
|
||
expect( | ||
shallow(<MyAssetInfo asset={asset} userAction={userAction} />) | ||
).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
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
13 changes: 8 additions & 5 deletions
13
decentraland/components/presentational/MyAssetsList.test.js
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
8 changes: 6 additions & 2 deletions
8
decentraland/components/presentational/MyAssetsListItem.test.js
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,10 +1,14 @@ | ||
import React from "react"; | ||
import { shallow } from "enzyme"; | ||
import MyAssetsListItem from "./MyAssetsListItem"; | ||
import { parcel } from "@helpers/testHelpers"; | ||
import { parcel, parcelUserAction } from "@helpers/testHelpers"; | ||
|
||
describe("MyAssetsListItem", () => { | ||
it("renders the component", async () => { | ||
expect(shallow(<MyAssetsListItem asset={parcel} />)).toMatchSnapshot(); | ||
const asset = parcel; | ||
const userAction = parcelUserAction; | ||
expect( | ||
shallow(<MyAssetsListItem asset={asset} userAction={userAction} />) | ||
).toMatchSnapshot(); | ||
}); | ||
}); |
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
// To be used for meta-tx | ||
export const BROADCASTED = "BROADCASTED"; | ||
|
||
export const PENDING = "PENDING"; | ||
export const FAILED = "FAILED"; | ||
|
||
// Note: We are using only 'SUCCESSFUL' for now | ||
// When we'll tracking confirmations that will be used for >= 7 | ||
// and 'PROBABLY_SUCCESSFUL' to < 7 confirmations. | ||
export const PROBABLY_SUCCESSFUL = "PROBABLY_SUCCESSFUL"; | ||
export const SUCCESSFUL = "SUCCESSFUL"; | ||
|
||
export default { | ||
PENDING, | ||
FAILED, | ||
SUCCESSFUL, | ||
}; |
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
Oops, something went wrong.