Skip to content

Instantly share code, notes, and snippets.

Avatar
🍒
💦

Pedro Costa Neves persocon

🍒
💦
View GitHub Profile
View Page.js
import React, {Component} from 'react';
import {withHelmet} from './helpers/withHelmet';
class BananaPage extends Component {
render() {
return (<p>Banana</p>)
}
}
const Page = withHelmet(BananaPage);
View keybase.md

Keybase proof

I hereby claim:

  • I am persocon on github.
  • I am persocon (https://keybase.io/persocon) on keybase.
  • I have a public key ASCprYNa9CGPPnc7ggmvEgMlDjulDVEZeLIpguh1L14bdwo

To claim this, I am signing this object:

View sinontest.js
it('should fill in GET_OPTIONS when fetching all options is done', function(done) {
const server = sinon.fakeServer.create();
server.respondWith('GET', '/api/selectActivity/2/tkrp1986',[
200,
{ "Content-Type": "application/json" },
'{options: [{value: "nightfall"}]}'
]);
const expectedAction = {
type: 'GET_OPTIONS',
View test.js
it('should fill in GET_OPTIONS when fetching all options is done', () => {
nock(apiUrl)
.get('/api/selectActivity/2/tkrp1986')
.reply(200, {options: [
{
value: "nightfall"
}
]
});