Skip to content

Instantly share code, notes, and snippets.

Avatar

Christoph Nakazawa cpojer

View GitHub Profile
@cpojer
cpojer / .gitignore
Last active Jan 2, 2019
GitHub RN Issue Parser
View .gitignore
node_modules
comments.json
comments.md
View App-snapshot.js
exports[`App renders a welcome view 1`] = `
<div
className="App">
<div
className="App-header">
<img
alt="logo"
className="App-logo"
src="mock-image.png" />
<h2>
View test.diff
From 6b55e45d58eb98bb353fbf2087a5c0494e0110e4 Mon Sep 17 00:00:00 2001
From: cpojer <christoph.pojer@gmail.com>
Date: Fri, 23 Oct 2015 14:24:52 -0700
Subject: [PATCH] Fix tests.
---
package.json | 11 ++++++++---
src/components/Header/__tests__/Header-test.js | 2 --
src/mocks/css-stub.js | 7 +++++++
3 files changed, 15 insertions(+), 5 deletions(-)
View gist:67a1bb2de2f4f4828b89
From 6b55e45d58eb98bb353fbf2087a5c0494e0110e4 Mon Sep 17 00:00:00 2001
From: cpojer <christoph.pojer@gmail.com>
Date: Fri, 23 Oct 2015 14:24:52 -0700
Subject: [PATCH] Fix tests.
---
package.json | 11 ++++++++---
src/components/Header/__tests__/Header-test.js | 2 --
src/mocks/css-stub.js | 7 +++++++
3 files changed, 15 insertions(+), 5 deletions(-)
View gist:e1cf50b27dec6a5b1345
{"success":true,"startTime":1445389390738,"numTotalTests":15,"numPassedTests":15,"numFailedTests":0,"testResults":[{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/HasteModuleLoader/__tests__/HasteModuleLoader-currentTestPath-test.js","summary":"","message":"","status":"passed","startTime":1445389391540,"endTime":1445389391560,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/lib/__tests__/moduleMocker-test.js","summary":"","message":"","status":"passed","startTime":1445389391522,"endTime":1445389391562,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/lib/__tests__/promisify-test.js","summary":"","message":"","status":"passed","startTime":1445389391541,"endTime":1445389391603,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/third_party/jest/src/lib/__tests__/FakeTimers-test.js","summary":"","message":"","status":"passed","startTime":1445389391520,"endTime":1445389391671,"coverage":{}},{"name":"/data/users/cpojer/www-hg/scripts/
View app.js
import ReactRouterRelay from 'react-router-relay';
// ...
React.render(
<Router
history={new BrowserHistory()}
createElement={ReactRouterRelay.createElement}>
<Route
name="home" // added a name to the route
View main-panel.html
<!doctype html>
<html>
<head>
<style type="text/css">
body {
margin: 0;
}
iframe {
bottom: 0;
View RootContainer.js
<RelayRootContainer
Component={Component}
route={{name, params, queries}}
/>
View uriBuilder.js
<Link href={getURIBuilder(ProfileRoute).setString('id', user.id).getURI()}>
{user.name}
</Link>
You can’t perform that action at this time.