Skip to content

Commit cee1291

Browse files
committed
Merge pull request #18 from maxogden/0.3.0
0.3.0 - no more xmlhttprequest polyfill (for now)
2 parents ab8f9e5 + 24dc236 commit cee1291

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Jealous of Node.js? Pining for clever callbacks? Request is for you.
66

77
Don't care about Node.js? Looking for less tedium and a no-nonsense API? Request is for you too.
88

9-
[![browser support](https://ci.testling.com/maxogden/browser-request.png)](https://ci.testling.com/maxogden/browser-request)
9+
[![browser support](https://ci.testling.com/iriscouch/browser-request.png)](https://ci.testling.com/maxogden/browser-request)
1010

1111
# Examples
1212

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-request",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"author": {
55
"name": "Jason Smith",
66
"email": "[email protected]"
@@ -10,19 +10,17 @@
1010
"request",
1111
"http",
1212
"browser",
13-
"ender",
1413
"browserify"
1514
],
16-
"homepage": "http://github.com/maxogden/browser-request",
15+
"homepage": "http://github.com/iriscouch/browser-request",
1716
"repository": {
1817
"type": "git",
19-
"url": "git://github.com/maxogden/browser-request"
18+
"url": "git://github.com/iriscouch/browser-request"
2019
},
2120
"scripts": {
2221
"test": "beefy test.js"
2322
},
2423
"devDependencies": {
25-
"tap": "0.1.3",
2624
"tape": "~1.0.4",
2725
"beefy": "~0.4.0",
2826
"browserify": "~2.25.0"

test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ var test = require('tape')
33
var request = require('./')
44

55
test('try a CORS GET', function (t) {
6-
t.plan(2)
76
var url = 'https://www.googleapis.com/plus/v1/activities'
87
request(url, function(err, resp, body) {
98
t.equal(resp.statusCode, 400)
109
t.equal(!!resp.body.match(/Required parameter/), true)
10+
t.end()
1111
})
1212
})
1313

1414
test('json true', function (t) {
15-
t.plan(1)
1615
var url = 'https://www.googleapis.com/plus/v1/activities'
1716
request({url: url, json: true}, function(err, resp, body) {
1817
t.equal(body.error.code, 400)
18+
t.end()
1919
})
20-
})
20+
})

0 commit comments

Comments
 (0)