This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from artsy/testing
Start looking at testing
- Loading branch information
Showing
21 changed files
with
186 additions
and
146 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
language: node_js | ||
node_js: | ||
- "6.1" | ||
|
||
before_install: | ||
- rvm install 2.2 | ||
- rvm use 2.2 --fuzzy | ||
|
||
install: | ||
- bundle install | ||
- npm install | ||
|
||
before_script: | ||
- bundle exec danger | ||
- npm run lint |
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 @@ | ||
message("Hello, world.") |
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,7 @@ | ||
# Once danger-js is shipped, I'm happy to move this to a `gem install danger-js` step in travis if we want. | ||
source "https://rubygems.org" | ||
|
||
gem "danger", git: "https://github.com/danger/danger", :branch => "js" | ||
gem "danger-js" | ||
|
||
gem "danger-junit" |
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,67 @@ | ||
GIT | ||
remote: https://github.com/danger/danger | ||
revision: b5ceb81c029eee496f746b4039b2801d5cc4b9c0 | ||
branch: js | ||
specs: | ||
danger (2.1.2) | ||
claide (~> 1.0) | ||
claide-plugins (> 0.9.0) | ||
colored (~> 1.2) | ||
cork (~> 0.1) | ||
faraday (~> 0) | ||
faraday-http-cache (~> 1.0) | ||
git (~> 1) | ||
kramdown (~> 1.5) | ||
octokit (~> 4.2) | ||
terminal-table (~> 1) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
addressable (2.4.0) | ||
claide (1.0.0) | ||
claide-plugins (0.9.1) | ||
cork | ||
nap | ||
open4 (~> 1.3) | ||
colored (1.2) | ||
cork (0.1.0) | ||
colored (~> 1.2) | ||
danger-js (1.0.0) | ||
danger (> 2.0) | ||
therubyracer (~> 0.12) | ||
danger-junit (0.7.0) | ||
danger (~> 2.0) | ||
ox (~> 2.0) | ||
faraday (0.9.2) | ||
multipart-post (>= 1.2, < 3) | ||
faraday-http-cache (1.3.1) | ||
faraday (~> 0.8) | ||
git (1.3.0) | ||
kramdown (1.11.1) | ||
libv8 (3.16.14.15) | ||
multipart-post (2.0.0) | ||
nap (1.1.0) | ||
octokit (4.3.0) | ||
sawyer (~> 0.7.0, >= 0.5.3) | ||
open4 (1.3.4) | ||
ox (2.4.4) | ||
ref (2.0.0) | ||
sawyer (0.7.0) | ||
addressable (>= 2.3.5, < 2.5) | ||
faraday (~> 0.8, < 0.10) | ||
terminal-table (1.6.0) | ||
therubyracer (0.12.2) | ||
libv8 (~> 3.16.14.0) | ||
ref | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
danger! | ||
danger-js | ||
danger-junit | ||
|
||
BUNDLED WITH | ||
1.12.5 |
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,9 @@ | ||
platforms: | ||
rubygems: | ||
colored: | ||
tests: | ||
unmaintained: skip | ||
NPM: | ||
jade: | ||
tests: | ||
deprecated: skip | ||
deprecated: skip |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
"exclude": [ | ||
"node_modules", | ||
"Pod/Assets", | ||
"Example/Build" | ||
"Example/Build", | ||
".vscode/typings" | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
lib/components/__tests__/__snapshots__/seperator-tests.js.snap
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 @@ | ||
exports[`test looks like expected 1`] = ` | ||
<View | ||
style={ | ||
Array [ | ||
Object { | ||
"backgroundColor": "#e5e5e5", | ||
"height": 1, | ||
"marginLeft": -20, | ||
"marginRight": -20 | ||
}, | ||
undefined | ||
] | ||
} /> | ||
`; |
26 changes: 26 additions & 0 deletions
26
lib/components/__tests__/__snapshots__/tab_view-tests.js.snap
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,26 @@ | ||
exports[`test looks like expected 1`] = ` | ||
<View> | ||
<View | ||
style={ | ||
Array [ | ||
Object { | ||
"alignSelf": "flex-start", | ||
"borderColor": "red", | ||
"borderWidth": 1 | ||
}, | ||
Array [ | ||
Object { | ||
"height": 46 | ||
}, | ||
Object { | ||
"marginBottom": 30, | ||
"marginLeft": 0, | ||
"marginRight": 0, | ||
"marginTop": 30 | ||
} | ||
] | ||
] | ||
} /> | ||
<View /> | ||
</View> | ||
`; |
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,13 @@ | ||
import 'react-native' | ||
import React from 'react' | ||
import renderer from 'react-test-renderer' | ||
import Separator from '..//separator' | ||
|
||
it('looks like expected', () => { | ||
const tree = renderer.create( | ||
<Separator /> | ||
).toJSON() | ||
expect(tree).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,11 @@ | ||
import 'react-native' | ||
import React from 'react' | ||
import renderer from 'react-test-renderer' | ||
import TabView from '../tab_view' | ||
|
||
it('looks like expected', () => { | ||
const tree = renderer.create( | ||
<TabView titles={['one', 'two']} selectedIndex={1} onSelectionChange={() => {}} /> | ||
).toJSON() | ||
expect(tree).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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"Pod/Assets", | ||
"Example/Build" | ||
] | ||
} | ||
} |
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,8 @@ | ||
{ | ||
"globalDependencies": { | ||
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255", | ||
"lodash": "registry:dt/lodash#4.14.0+20160802150749", | ||
"react": "registry:dt/react#0.14.0+20160805125551", | ||
"react-native": "registry:dt/react-native#0.29.0+20160728152643" | ||
} | ||
} |