Skip to content

Instantly share code, notes, and snippets.

test('a customer can order a product', async () => {
const {app, productRepo, orderRepo} = await createTestHarness();
const product = await productRepo.create(aProduct());
const cartId = someRandomString();
await app
.post(`/cart/${cartId}`)
@electricmonk
electricmonk / Dockerfile
Created October 19, 2015 20:05
nodegit fails to fetch binary from S3
FROM node:0.12.7
WORKDIR /app
ADD ./package.json /app/
RUN npm config set loglevel verbose
RUN npm install
ADD . /app
CMD ["npm", "start"]
@electricmonk
electricmonk / run-ios-its.sh
Created November 20, 2014 14:17
A script that starts a Java server and runs iOS unit tests against it
#!/bin/bash
# Assuming Cocoapods was installed (sudo gem install cocoapods)
JARBALL="target/server/$SERVER_ARTIFACT-$SERVER_VERSION"
# assume maven dependency:unpack has placed our jarball in target/server as configued in pom.xml
unzip -o "$JARBALL-deployable.jar" -d "target/server"
MAX_ATTEMPTS=30