From ba24e72537171dd64c00ff97949a390b36af42db Mon Sep 17 00:00:00 2001
From: 30secondsofcode <30secondsofcode@gmail.com>
Date: Fri, 12 Jan 2018 11:32:53 +0000
Subject: [PATCH] Travis build: 1207
---
README.md | 32 +++++++++-----------------------
docs/index.html | 34 ++++++++++------------------------
snippets/httpPost.md | 14 +++++++++-----
3 files changed, 28 insertions(+), 52 deletions(-)
diff --git a/README.md b/README.md
index 2dcbb7b26..8d9697041 100644
--- a/README.md
+++ b/README.md
@@ -5471,32 +5471,18 @@ const httpPost = (url, callback, data = null, err = console.error) => {
- - - - - - - - - - - - - - - - - -const newPost = { - "userId": 1, - "id": 1337, - "title": "Foo", - "body": "bar bar bar" +
const newPost = { + userId: 1, + id: 1337, + title: 'Foo', + body: 'bar bar bar' }; const data = JSON.stringify(newPost); -httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data; /* +httpPost( + 'https://jsonplaceholder.typicode.com/posts', + console.log, + data +); /* Logs: { "userId": 1, "id": 1337, diff --git a/snippets/httpPost.md b/snippets/httpPost.md index 04c84846e..8b51b5fbe 100644 --- a/snippets/httpPost.md +++ b/snippets/httpPost.md @@ -22,13 +22,17 @@ const httpPost = (url, callback, data = null, err = console.error) => { ```js const newPost = { - "userId": 1, - "id": 1337, - "title": "Foo", - "body": "bar bar bar" + userId: 1, + id: 1337, + title: 'Foo', + body: 'bar bar bar' }; const data = JSON.stringify(newPost); -httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data); /* +httpPost( + 'https://jsonplaceholder.typicode.com/posts', + console.log, + data +); /* Logs: { "userId": 1, "id": 1337,