Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #52 from pgray/patch-1
Browse files Browse the repository at this point in the history
"Repsonse" should be "Response"
  • Loading branch information
mihar authored Jul 4, 2016
2 parents a8687a8 + 6f9a341 commit e614fa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/public_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var publicClient = new CoinbaseExchange.PublicClient();
var EXCHANGE_API_URL = 'https://api.gdax.com';

test('get product trades', function(done) {
var expectedRepsonse = [{
var expectedResponse = [{
"time": "2014-11-07T22:19:28.578544Z",
"trade_id": 74,
"price": "10.00000000",
Expand All @@ -23,11 +23,11 @@ test('get product trades', function(done) {

nock(EXCHANGE_API_URL)
.get('/products/BTC-USD/trades')
.reply(200, expectedRepsonse);
.reply(200, expectedResponse);

publicClient.getProductTrades(function(err, resp, data) {
assert.ifError(err);
assert.deepEqual(data, expectedRepsonse);
assert.deepEqual(data, expectedResponse);

nock.cleanAll();
done();
Expand Down

0 comments on commit e614fa2

Please sign in to comment.