Skip to content

Instantly share code, notes, and snippets.

View persocon's full-sized avatar
🍒
💦

Pedro Costa Neves persocon

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

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:

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',
it('should fill in GET_OPTIONS when fetching all options is done', () => {
nock(apiUrl)
.get('/api/selectActivity/2/tkrp1986')
.reply(200, {options: [
{
value: "nightfall"
}
]
});