Skip to content

Instantly share code, notes, and snippets.

View RoryKelly's full-sized avatar

Rory Kelly RoryKelly

View GitHub Profile
@aofleejay
aofleejay / integration.test.js
Created October 11, 2017 13:09
GraphQL integration test
import { expect } from 'chai'
import supertest from 'supertest'
import server from '../../src/server'
describe('Test query', () => {
it('has correct getCharacters query', (done) => {
const request = supertest.agent(server)
const query = {
query: `
query {
@tmarshall
tmarshall / aws-sns-example.js
Last active October 30, 2022 06:12
aws-sdk sns example, in Node.js
var AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
});
var sns = new AWS.SNS();