forked from tasitlabs/tasit-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
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
3310263
commit 6cc6b82
Showing
14 changed files
with
305 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import EthereumQuestion from "./EthereumQuestion"; | ||
|
||
describe("EthereumQuestion", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
expect(shallow(<EthereumQuestion />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import EthereumSignIn from "./EthereumSignIn"; | ||
|
||
describe("EthereumSignIn", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
expect(shallow(<EthereumSignIn />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import EthereumSignUp from "./EthereumSignUp"; | ||
|
||
describe("EthereumSignUp", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
expect(shallow(<EthereumSignUp />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import Home from "./Home"; | ||
|
||
describe("Home", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
expect(shallow(<Home />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import LandClaim from "./LandClaim"; | ||
|
||
describe("LandClaim", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
const navigation = { getParam: jest.fn() }; | ||
expect(shallow(<LandClaim navigation={navigation} />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import ListLands from "./ListLands"; | ||
|
||
describe("EthereumQuestion", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
expect(shallow(<ListLands />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import NavigationTestUtils from "react-navigation/NavigationTestUtils"; | ||
import { shallow } from "enzyme"; | ||
import OnboardingHome from "./OnboardingHome"; | ||
|
||
describe("OnboardingHome", () => { | ||
jest.useFakeTimers(); | ||
beforeEach(() => { | ||
NavigationTestUtils.resetInternalState(); | ||
}); | ||
|
||
it("renders the component", async () => { | ||
expect(shallow(<OnboardingHome />)).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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EthereumQuestion renders the component 1`] = ` | ||
<Component | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
"justifyContent": "center", | ||
} | ||
} | ||
> | ||
<LargeText> | ||
Are you new to Ethereum? | ||
</LargeText> | ||
<Component | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
"marginTop": 20, | ||
} | ||
} | ||
> | ||
<Button | ||
onPress={[Function]} | ||
title="Yep" | ||
/> | ||
</Component> | ||
<Component | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
"marginTop": 20, | ||
} | ||
} | ||
> | ||
<Button | ||
onPress={[Function]} | ||
title="Nope" | ||
/> | ||
</Component> | ||
</Component> | ||
`; |
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,31 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EthereumSignIn renders the component 1`] = ` | ||
<Component | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
"justifyContent": "center", | ||
} | ||
} | ||
> | ||
<LargeText> | ||
Cool. Let's start by hooking this app with your wallet. | ||
</LargeText> | ||
<Component | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
"marginTop": 30, | ||
} | ||
} | ||
> | ||
<Button | ||
onPress={[Function]} | ||
title="Connect with WalletConnect" | ||
/> | ||
</Component> | ||
</Component> | ||
`; |
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,22 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EthereumSignUp renders the component 1`] = ` | ||
<KeyboardAvoidingView | ||
behavior="padding" | ||
enabled={true} | ||
keyboardVerticalOffset={84} | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
"justifyContent": "center", | ||
} | ||
} | ||
> | ||
<LargeText> | ||
Cool. Let's start by picking your Tasit username. | ||
</LargeText> | ||
<EthereumSignUpForm /> | ||
</KeyboardAvoidingView> | ||
`; |
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,25 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Home renders the component 1`] = ` | ||
<Component | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
"justifyContent": "center", | ||
} | ||
} | ||
> | ||
<Component | ||
source={1} | ||
/> | ||
<LargeText> | ||
Tasit | ||
</LargeText> | ||
<Button | ||
onPress={[Function]} | ||
title="Decentraland" | ||
/> | ||
</Component> | ||
`; |
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,29 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`LandClaim renders the component 1`] = ` | ||
<Component | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
"justifyContent": "center", | ||
} | ||
} | ||
> | ||
<Land /> | ||
<Component | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
"marginTop": 30, | ||
} | ||
} | ||
> | ||
<Button | ||
onPress={[Function]} | ||
title="Claim" | ||
/> | ||
</Component> | ||
</Component> | ||
`; |
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,14 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`EthereumQuestion renders the component 1`] = ` | ||
<ListViewMock | ||
renderRow={[Function]} | ||
renderScrollComponent={[MockFunction]} | ||
style={ | ||
Object { | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
} | ||
} | ||
/> | ||
`; |
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,34 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`OnboardingHome renders the component 1`] = ` | ||
<Component | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"backgroundColor": "#fff", | ||
"flex": 1, | ||
"justifyContent": "center", | ||
} | ||
} | ||
> | ||
<Component | ||
source={1} | ||
/> | ||
<LargeText> | ||
Let's get you set up with a secure way to store this land! | ||
</LargeText> | ||
<Component | ||
style={ | ||
Object { | ||
"flexDirection": "row", | ||
"marginTop": 30, | ||
} | ||
} | ||
> | ||
<Button | ||
onPress={[Function]} | ||
title="Get started" | ||
/> | ||
</Component> | ||
</Component> | ||
`; |