Skip to content

Instantly share code, notes, and snippets.

@biscuitvile
Created June 15, 2015 17:01
Show Gist options
  • Save biscuitvile/c0367dab2ba4df431344 to your computer and use it in GitHub Desktop.
Save biscuitvile/c0367dab2ba4df431344 to your computer and use it in GitHub Desktop.
beforeEach: function() {
application = startApp();
var order = server.create('order', {
id: 'EFGH-123456',
customerFirstName: 'Dana',
customerLastName: 'Scully',
customerEmail: 'dana@example.com',
shippingAddress1: '411 Walnut St.',
shippingAddress2: '#6534',
shippingCity: 'Jacksonville',
shippingState: 'Florida',
shippingZip: '32043',
shippingCountryName: 'United States',
note: 'Government denies knowledge',
total: '$12.56',
paymentUrl: 'https://sandbox.paypal.com/transactions/foo',
completedAt: new Date('April 26, 2015'),
});
var items = server.createList('item', 14);
order.items = items;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment